We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7df30f9 commit c798054Copy full SHA for c798054
test/CMakeLists.txt
@@ -1,5 +1,7 @@
1
add_subdirectory(gtest)
2
3
+include(CheckSymbolExists)
4
+
5
set(TEST_MAIN_SRC test-main.cc gtest-extra.cc gtest-extra.h util.cc)
6
add_library(test-main STATIC ${TEST_MAIN_SRC})
7
target_include_directories(test-main PUBLIC
@@ -75,7 +77,14 @@ if (MSVC)
75
77
endif()
76
78
add_fmt_test(printf-test)
79
add_fmt_test(ranges-test ranges-odr-test.cc)
-add_fmt_test(scan-test)
80
81
+check_symbol_exists(strptime "time.h" HAVE_STRPTIME)
82
+if (HAVE_STRPTIME)
83
+ add_fmt_test(scan-test)
84
+else()
85
+ message(WARNING "Skipping scan-test due to missing strptime dependency.")
86
+endif ()
87
88
add_fmt_test(std-test)
89
try_compile(compile_result_unused
90
${CMAKE_CURRENT_BINARY_DIR}
0 commit comments