diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2022-08-21 02:09:55 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-09-22 13:24:47 (GMT) |
commit | 1bcacccce9e60800ea826c7e79012a64fec4e687 (patch) | |
tree | f78589ba29171acacf8b6cfbbf166808f5988633 /Source/CMakeLists.txt | |
parent | 324d13b25de48943459ad39e805b6e1dd41cfe2c (diff) | |
download | CMake-1bcacccce9e60800ea826c7e79012a64fec4e687.zip CMake-1bcacccce9e60800ea826c7e79012a64fec4e687.tar.gz CMake-1bcacccce9e60800ea826c7e79012a64fec4e687.tar.bz2 |
Build: Move `STAT_HAS_ST_MTIM`, `STAT_HAS_ST_MTIMESPEC` to config file
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r-- | Source/CMakeLists.txt | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index aa74ed5..1182483 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -36,6 +36,14 @@ if(WIN32 OR CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "Da set(CMAKE_USE_WMAKE 1) endif() +foreach(check IN ITEMS STAT_HAS_ST_MTIM STAT_HAS_ST_MTIMESPEC) + if(KWSYS_CXX_${check}_COMPILED) # abuse KWSys check cache entry + set(CMake_${check} 1) + else() + set(CMake_${check} 0) + endif() +endforeach() + set(EXECUTABLE_OUTPUT_PATH ${CMake_BIN_DIR}) if(WIN32) @@ -902,16 +910,6 @@ if(WIN32 AND NOT CYGWIN) target_link_libraries(cmcldeps PRIVATE CMakeLib) endif() -foreach(check IN ITEMS STAT_HAS_ST_MTIM STAT_HAS_ST_MTIMESPEC) - if(KWSYS_CXX_${check}_COMPILED) # abuse KWSys check cache entry - set(CMake_${check} 1) - else() - set(CMake_${check} 0) - endif() - set_property(SOURCE cmFileTime.cxx APPEND PROPERTY - COMPILE_DEFINITIONS CMake_${check}=${CMake_${check}}) -endforeach() - if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR MATCHES "sparc") # the atomic instructions are implemented using libatomic on some platforms, # so linking to that may be required |