From b3cc4711d2a1b70b256f4b127ad895d0c79e094e Mon Sep 17 00:00:00 2001 From: flagarde Date: Tue, 14 May 2024 16:02:08 +0800 Subject: [PATCH] Try detect extension with MSVC --- tests/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 96567da..3d57903 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -122,6 +122,7 @@ foreach(CC_STANDARD ${CC_STANDARDS}) set_target_properties(LanguageC${CC_STANDARD}Extensions${CC_EXTENSION}.test PROPERTIES C_STANDARD_REQUIRED TRUE) set_target_properties(LanguageC${CC_STANDARD}Extensions${CC_EXTENSION}.test PROPERTIES C_EXTENSIONS ${CC_EXTENSION}) target_link_libraries(LanguageC${CC_STANDARD}Extensions${CC_EXTENSION}.test PRIVATE Khaos::Khaos KhaosTestFlags) + target_compile_options(LanguageC${CC_STANDARD}Extensions${CC_EXTENSION}.test PRIVATE $<$:$<$:/Za>>) add_test(NAME "Test the language C${CC_STANDARD} extensions ${CC_EXTENSION}" COMMAND LanguageC${CC_STANDARD}Extensions${CC_EXTENSION}.test) endforeach() endif()