Skip to content

Commit 770eedc

Browse files
committed
strftime: better check
1 parent bbdfc0f commit 770eedc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/time/CMakeLists.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ add_library(fortran_clock OBJECT clock.f90)
44
add_executable(cxx_fortran_tictoc main.cpp $<TARGET_OBJECTS:fortran_clock>)
55
add_test(NAME C++_Fortran_tictoc COMMAND cxx_fortran_tictoc)
66

7-
file(READ strftime.f90 src)
8-
check_source_compiles(Fortran "${src}" HAVE_C_STRFTIME)
7+
check_symbol_exists(strftime "time.h" HAVE_C_STRFTIME)
98

109
set(tests strptime)
1110
if(HAVE_C_STRFTIME)

0 commit comments

Comments
 (0)