summaryrefslogtreecommitdiffstats
path: root/Source/CMakeLists.txt
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2022-08-21 04:37:20 (GMT)
committerBrad King <brad.king@kitware.com>2022-09-22 13:24:49 (GMT)
commit35ad2c6e5f232b2446ce11165e2076a8b0e7ce69 (patch)
tree119b122ff7958a520c574b34ea9c827393f0bbc5 /Source/CMakeLists.txt
parent98e8b1755b2b8b3d9ff781ca997e8af28dc1ca8d (diff)
downloadCMake-35ad2c6e5f232b2446ce11165e2076a8b0e7ce69.zip
CMake-35ad2c6e5f232b2446ce11165e2076a8b0e7ce69.tar.gz
CMake-35ad2c6e5f232b2446ce11165e2076a8b0e7ce69.tar.bz2
Build: Replace `foreach` with 2 `set` calls
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r--Source/CMakeLists.txt9
1 files changed, 2 insertions, 7 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index 0afdf4c..6c2daec 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -36,13 +36,8 @@ 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(CMake_STAT_HAS_ST_MTIM ${KWSYS_CXX_STAT_HAS_ST_MTIM_COMPILED})
+set(CMake_STAT_HAS_ST_MTIMESPEC ${KWSYS_CXX_STAT_HAS_ST_MTIMESPEC_COMPILED})
set(EXECUTABLE_OUTPUT_PATH ${CMake_BIN_DIR})