summaryrefslogtreecommitdiff
path: root/compat/zlib/contrib/gcc_gvmat64/CMakeLists.txt
diff options
context:
space:
mode:
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)