We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cd08fe commit e80cc07Copy full SHA for e80cc07
CMakeLists.txt
@@ -458,11 +458,16 @@ include(CheckVariableExists)
458
include(CheckTypeSize)
459
460
#
461
-# Get the size of a time_t, to know whether it's 32-bit or 64-bit.
+# Get the size of a time_t, to know whether it's 32-bit or 64-bit. Print it.
462
463
cmake_push_check_state()
464
set(CMAKE_EXTRA_INCLUDE_FILES time.h)
465
check_type_size("time_t" SIZEOF_TIME_T)
466
+if(SIZEOF_TIME_T EQUAL 4)
467
+ message(STATUS "32-bit time_t")
468
+elseif(SIZEOF_TIME_T EQUAL 8)
469
+ message(STATUS "64-bit time_t")
470
+endif()
471
cmake_pop_check_state()
472
473
0 commit comments