From 320dd098a8d4d936f439348821e2d7cb707503d5 Mon Sep 17 00:00:00 2001 From: cohall-2020 <62623706+cohall-2020@users.noreply.github.com> Date: Tue, 28 Apr 2020 23:56:40 +0200 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 10d10b99..902fbeb3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 ()