1 1.1 christos enable_language(ASM) 2 1.1 christos 3 1.1 christos # Need to push CMAKE_ASM_COMPILE_OBJECT to cache as otherwise it's not 4 1.1 christos # available in top-level 5 1.1 christos 6 1.1 christos set(CMAKE_ASM_COMPILE_OBJECT ${CMAKE_ASM_COMPILE_OBJECT} CACHE INTERNAL "" FORCE) 7 1.1 christos 8 1.1 christos if(MSVC) 9 1.1 christos #cmake 4.1 doesn't consider cl an asm compiler 10 1.1 christos cmake_policy(SET CMP0194 NEW) 11 1.1 christos endif(MSVC) 12 1.1 christos 13 1.1 christos if(ZLIB_BUILD_SHARED) 14 1.1 christos target_sources(zlib PRIVATE gvmat64.S) 15 1.1 christos endif(ZLIB_BUILD_SHARED) 16 1.1 christos 17 1.1 christos if(ZLIB_BUILD_STATIC) 18 1.1 christos target_sources(zlibstatic PRIVATE gvmat64.S) 19 1.1 christos endif(ZLIB_BUILD_STATIC) 20