We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 704b141 commit d5aa041Copy full SHA for d5aa041
test/CMakeLists.txt
@@ -6,7 +6,7 @@ macro(add_cache_test _TEST_NAME)
6
target_include_directories(${_TEST_NAME}_tests PRIVATE ${GTEST_INCLUDE_DIRS} ${parallel-hashmap_SOURCE_DIR})
7
target_compile_definitions(${_TEST_NAME}_tests PRIVATE $<$<BOOL:${USE_CUSTOM_HASHMAP}>:CUSTOM_HASHMAP>)
8
target_compile_options(${_TEST_NAME}_tests PRIVATE
9
- $<$<CXX_COMPILER_ID:MSVC>:/W4 /WX>
+ $<$<CXX_COMPILER_ID:MSVC>:$<IF:$<VERSION_GREATER_EQUAL:MSVC_TOOLSET_VERSION,142>,/W4 /WX,>>
10
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wall -Wextra -Wpedantic -Werror>)
11
add_test(NAME cache_${_TEST_NAME}_tests COMMAND ${_TEST_NAME}_tests)
12
endmacro()
0 commit comments