summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorThomas Bernard <thomas@famillebernardgouriou.fr>2021-09-16 22:24:42 (GMT)
committerThomas Bernard <thomas@famillebernardgouriou.fr>2021-09-16 22:35:32 (GMT)
commitb73857561fe3ffb8ee0ce3057706c51faabf2e4d (patch)
tree6223008d42f758883e13615af09a70b90af8676e /Tests
parentc2c1c701c7f0768c382c819b6922b134690212ba (diff)
downloadCMake-b73857561fe3ffb8ee0ce3057706c51faabf2e4d.zip
CMake-b73857561fe3ffb8ee0ce3057706c51faabf2e4d.tar.gz
CMake-b73857561fe3ffb8ee0ce3057706c51faabf2e4d.tar.bz2
Clang: embed windows manifests with GNU interface
Solves: #22611
Diffstat (limited to 'Tests')
-rw-r--r--Tests/MSManifest/Subdir/CMakeLists.txt4
-rw-r--r--Tests/MSManifest/Subdir2/CMakeLists.txt2
2 files changed, 5 insertions, 1 deletions
diff --git a/Tests/MSManifest/Subdir/CMakeLists.txt b/Tests/MSManifest/Subdir/CMakeLists.txt
index 8664572..3b4fccc 100644
--- a/Tests/MSManifest/Subdir/CMakeLists.txt
+++ b/Tests/MSManifest/Subdir/CMakeLists.txt
@@ -7,4 +7,8 @@ if(MSVC AND NOT MSVC_VERSION LESS 1400)
-P ${CMAKE_CURRENT_SOURCE_DIR}/check.cmake)
add_executable(MSManifestNone main.c)
set_property(TARGET MSManifestNone PROPERTY LINK_FLAGS "/MANIFEST:NO")
+elseif(WIN32 AND CMAKE_C_COMPILER_ID MATCHES "Clang")
+ add_test(NAME MSManifest.Single COMMAND
+ ${CMAKE_COMMAND} -Dexe=$<TARGET_FILE:MSManifest>
+ -P ${CMAKE_CURRENT_SOURCE_DIR}/check.cmake)
endif()
diff --git a/Tests/MSManifest/Subdir2/CMakeLists.txt b/Tests/MSManifest/Subdir2/CMakeLists.txt
index 19d8de7..0d960ad 100644
--- a/Tests/MSManifest/Subdir2/CMakeLists.txt
+++ b/Tests/MSManifest/Subdir2/CMakeLists.txt
@@ -6,7 +6,7 @@ add_executable(MSMultipleManifest main.c
${CMAKE_CURRENT_BINARY_DIR}/test_manifest2.manifest
${CMAKE_CURRENT_BINARY_DIR}/test_manifest3.manifest)
-if(MSVC AND NOT MSVC_VERSION LESS 1400)
+if((MSVC AND NOT MSVC_VERSION LESS 1400) OR (WIN32 AND CMAKE_C_COMPILER_ID MATCHES "Clang") )
add_test(NAME MSManifest.Multiple COMMAND
${CMAKE_COMMAND} -Dexe=$<TARGET_FILE:MSMultipleManifest>
-P ${CMAKE_CURRENT_SOURCE_DIR}/check.cmake)