You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
340 B

  1. --- a/CMakeLists.txt
  2. +++ b/CMakeLists.txt
  3. @@ -523,7 +523,7 @@ set(STRPTIME_TEST_SOURCE "\n
  4. res = strptime(\"20070207111842\", \"%Y%m%d%H%M%S\", &tm);\n
  5. if (!res) return 1; return 0; }")
  6. -if (HAVE_STRPTIME)
  7. +if (HAVE_STRPTIME AND NOT CMAKE_CROSSCOMPILING)
  8. check_c_source_runs("${STRPTIME_TEST_SOURCE}" STRPTIME_WORKS)
  9. endif ()