We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b3e66c commit bbdfc0fCopy full SHA for bbdfc0f
test/time/CMakeLists.txt
@@ -17,8 +17,8 @@ foreach(t IN LISTS tests)
17
add_test(NAME ${t} COMMAND ${t})
18
endforeach()
19
20
-file(READ strptime.f90 src)
21
-check_source_compiles(Fortran "${src}" HAVE_C_STRPTIME)
+set(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
+check_symbol_exists(strptime "time.h" HAVE_C_STRPTIME)
22
23
if(NOT HAVE_C_STRPTIME)
24
add_library(cpp_strptime OBJECT strptime.cpp)
0 commit comments