Skip to content

Commit

Permalink
Try detect extension with MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
flagarde committed May 14, 2024
1 parent b0137c3 commit b3cc471
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 $<$<C_COMPILER_ID:MSVC>:$<$<BOOL:NOT ${CC_EXTENSION}>:/Za>>)
add_test(NAME "Test the language C${CC_STANDARD} extensions ${CC_EXTENSION}" COMMAND LanguageC${CC_STANDARD}Extensions${CC_EXTENSION}.test)
endforeach()
endif()
Expand Down

0 comments on commit b3cc471

Please sign in to comment.