Explorar o código

cmake: Apply CETCOMPAT fix from ef988fe1 to tests

Cameron Gutman %!s(int64=2) %!d(string=hai) anos
pai
achega
ec1137dfbd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      test/CMakeLists.txt

+ 1 - 1
test/CMakeLists.txt

@@ -51,7 +51,7 @@ if(WINDOWS)
     endif()
 
     # CET support was added in VS 16.7
-    if(MSVC_VERSION GREATER 1926 AND NOT CMAKE_GENERATOR_PLATFORM MATCHES ARM)
+    if(MSVC_VERSION GREATER 1926 AND CMAKE_GENERATOR_PLATFORM MATCHES "Win32|x64")
         link_libraries(-CETCOMPAT)
     endif()