File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,12 @@ if(MSVC)
4444 egyptian.cpp var.cpp variant.cpp CopyMoveAbilities.cpp
4545 )
4646
47+ add_subdirectory (third_party EXCLUDE_FROM_ALL )
48+
4749 # Simple executable for MSVC
4850 add_executable (ZooTest ${ZOO_TEST_SOURCES} )
49- target_compile_definitions (ZooTest PUBLIC AVOID_MSVC_BUG_SFINAE_INVALID_EXPLICIT_TEMPLATE_ARGUMENT)
51+ enable_testing ()
52+ ParseAndAddCatchTests(ZooTest)
5053
5154 try_compile (
5255 MSVC_BUG_BUILD_RESULT
@@ -76,7 +79,6 @@ if(MSVC)
7679 else ()
7780 MESSAGE (FATAL_ERROR "CMAKE try_compile of non-problematic file did not succeed: ${MSVC_OK_OUTPUT} " )
7881 endif ()
79-
8082else ()
8183 # Non-MSVC specific configuration (original content)
8284 set (CMAKE_CXX_STANDARD 17)
@@ -151,5 +153,4 @@ else()
151153 include_directories (${TEST_THIRD_PARTY_INCLUDE_PATH} )
152154 enable_testing ()
153155 ParseAndAddCatchTests(${TEST_APP_NAME} )
154-
155156endif ()
You can’t perform that action at this time.
0 commit comments