mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
Tests: Optionally skip tests requiring 64-bit time_t
On some platforms, `time_t` is always 32-bit. Add an explicit option to skip tests that require 64-bit `time_t`.
This commit is contained in:
@@ -747,6 +747,7 @@ add_RunCMake_test(set_property)
|
||||
add_RunCMake_test(string
|
||||
-DCMAKE_SYSTEM_NAME=${CMAKE_SYSTEM_NAME}
|
||||
-DCMAKE_SYSTEM_PROCESSOR=${CMAKE_SYSTEM_PROCESSOR}
|
||||
-DCMake_TEST_NO_64BIT_TIME=${CMake_TEST_NO_64BIT_TIME}
|
||||
)
|
||||
add_RunCMake_test(test_include_dirs)
|
||||
add_RunCMake_test(BundleUtilities)
|
||||
|
||||
@@ -23,6 +23,7 @@ run_cmake(JoinNoVar)
|
||||
run_cmake(Timestamp)
|
||||
if(NOT CMAKE_SYSTEM_NAME STREQUAL "AIX" # FIXME: Needs 64-bit build
|
||||
AND NOT CMAKE_SYSTEM_NAME STREQUAL "SunOS" # FIXME: Needs 64-bit build
|
||||
AND NOT CMake_TEST_NO_64BIT_TIME
|
||||
)
|
||||
run_cmake(Timestamp2038)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user