mirror of https://github.com/getdnsapi/getdns.git
Merge pull request #1 from cohall-2020/cohall-2020-patch-CMakeList
Update CMakeLists.txt
This commit is contained in:
commit
5e7bf99a5f
|
@ -530,7 +530,7 @@ set(STRPTIME_TEST_SOURCE "\n
|
|||
res = strptime(\"20070207111842\", \"%Y%m%d%H%M%S\", &tm);\n
|
||||
if (!res) return 1; return 0; }")
|
||||
|
||||
if (HAVE_STRPTIME)
|
||||
if (HAVE_STRPTIME AND NOT CMAKE_CROSSCOMPILING)
|
||||
check_c_source_runs("${STRPTIME_TEST_SOURCE}" STRPTIME_WORKS)
|
||||
endif ()
|
||||
|
||||
|
|
Loading…
Reference in New Issue