diff options
author | Brad King <brad.king@kitware.com> | 2022-10-21 13:25:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-11-09 15:22:46 (GMT) |
commit | ce4babb5669b9fcd8ff3d34c109eeca598144ce4 (patch) | |
tree | b82900c3ee0fc960130ffdaa43c2fcbb86ac498f /Tests/RunCMake/AutoExportDll | |
parent | 16cb04dbe9448554c97f407af38c1df1a2f3f953 (diff) | |
download | CMake-ce4babb5669b9fcd8ff3d34c109eeca598144ce4.zip CMake-ce4babb5669b9fcd8ff3d34c109eeca598144ce4.tar.gz CMake-ce4babb5669b9fcd8ff3d34c109eeca598144ce4.tar.bz2 |
Tests: Fix ARM64 test conditions for non-VS generators
Diffstat (limited to 'Tests/RunCMake/AutoExportDll')
-rw-r--r-- | Tests/RunCMake/AutoExportDll/AutoExport.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/RunCMake/AutoExportDll/AutoExport.cmake b/Tests/RunCMake/AutoExportDll/AutoExport.cmake index fe57d56..024c647 100644 --- a/Tests/RunCMake/AutoExportDll/AutoExport.cmake +++ b/Tests/RunCMake/AutoExportDll/AutoExport.cmake @@ -7,7 +7,7 @@ set_property(TARGET objlib PROPERTY POSITION_INDEPENDENT_CODE 1) add_library(autoexport SHARED hello.cxx world.cxx foo.c $<TARGET_OBJECTS:objlib>) add_library(autoexport3 SHARED cppCLI.cxx) if(MSVC AND NOT MSVC_VERSION VERSION_LESS 1600 - AND NOT CMAKE_VS_PLATFORM_NAME STREQUAL "ARM64") + AND NOT CMAKE_C_COMPILER_ARCHITECTURE_ID STREQUAL "ARM64") set_property(TARGET autoexport3 PROPERTY COMMON_LANGUAGE_RUNTIME "") endif() @@ -17,7 +17,7 @@ if(MSVC) add_library(autoexport_for_exec SHARED hello2.c) target_link_libraries(autoexport_for_exec say) if(NOT MSVC_VERSION VERSION_LESS 1600 AND - NOT CMAKE_VS_PLATFORM_NAME STREQUAL "ARM64") + NOT CMAKE_C_COMPILER_ARCHITECTURE_ID STREQUAL "ARM64") enable_language(ASM_MASM) target_sources(autoexport PRIVATE nop.asm) set_property(SOURCE nop.asm PROPERTY COMPILE_FLAGS /safeseh) |