summaryrefslogtreecommitdiff
path: root/compat/zlib/contrib/gcc_gvmat64/CMakeLists.txt
diff options
context:
space:
mode:
authorcashmere <cashmere@autistici.org>2026-09-04 09:05:24 +0200
committercashmere <cashmere@autistici.org>2026-09-04 09:05:24 +0200
commit4f49b16079b27d7ce633619e4cddfdf2bffbc952 (patch)
treec296c1e7f3c3e2f6859c6d3a1b1b208779b89679 /compat/zlib/contrib/gcc_gvmat64/CMakeLists.txt
downloadrelic-master.tar.gz
initial commitHEADmaster
Diffstat (limited to 'compat/zlib/contrib/gcc_gvmat64/CMakeLists.txt')
-rw-r--r--compat/zlib/contrib/gcc_gvmat64/CMakeLists.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/compat/zlib/contrib/gcc_gvmat64/CMakeLists.txt b/compat/zlib/contrib/gcc_gvmat64/CMakeLists.txt
new file mode 100644
index 0000000..53dd5a1
--- /dev/null
+++ b/compat/zlib/contrib/gcc_gvmat64/CMakeLists.txt
@@ -0,0 +1,19 @@
+enable_language(ASM)
+
+# Need to push CMAKE_ASM_COMPILE_OBJECT to cache as otherwise it's not
+# available in top-level
+
+set(CMAKE_ASM_COMPILE_OBJECT ${CMAKE_ASM_COMPILE_OBJECT} CACHE INTERNAL "" FORCE)
+
+if(MSVC)
+ #cmake 4.1 doesn't consider cl an asm compiler
+ cmake_policy(SET CMP0194 NEW)
+endif(MSVC)
+
+if(ZLIB_BUILD_SHARED)
+ target_sources(zlib PRIVATE gvmat64.S)
+endif(ZLIB_BUILD_SHARED)
+
+if(ZLIB_BUILD_STATIC)
+ target_sources(zlibstatic PRIVATE gvmat64.S)
+endif(ZLIB_BUILD_STATIC)