Commit ec1137dfbd90972319ee1432057e75c8ea88ced1

Cameron Gutman 2022-10-09T15:19:47

cmake: Apply CETCOMPAT fix from ef988fe1 to tests

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 9f372bc..ebea6de 100644
--- a/test/CMakeLists.txt
+++ b/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()