summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-06-03 11:44:41 (GMT)
committerBrad King <brad.king@kitware.com>2020-06-03 11:55:16 (GMT)
commit92c4316d81d4bfbec87a9f03080a576fa2718696 (patch)
tree48eaf0d73c92c40cdc36536ea5ce68602b99dd7f /CMakeLists.txt
parent2bc89f1a0310ad96b1188dd54081ef7281e54601 (diff)
downloadCMake-92c4316d81d4bfbec87a9f03080a576fa2718696.zip
CMake-92c4316d81d4bfbec87a9f03080a576fa2718696.tar.gz
CMake-92c4316d81d4bfbec87a9f03080a576fa2718696.tar.bz2
KWSys: Hard-code try_compile results on Windows
Several of KWSys's checks have the same result on all Windows platforms supported when building CMake.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 07ba2e3..f62c666 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -356,6 +356,21 @@ macro (CMAKE_BUILD_UTILITIES)
if(CMake_NO_CXX_STANDARD)
set(KWSYS_CXX_STANDARD "")
endif()
+ if(WIN32)
+ # FIXME: Teach KWSys to hard-code these checks on Windows.
+ set(KWSYS_C_HAS_CLOCK_GETTIME_MONOTONIC_COMPILED 0)
+ set(KWSYS_C_HAS_PTRDIFF_T_COMPILED 1)
+ set(KWSYS_CXX_HAS_ENVIRON_IN_STDLIB_H_COMPILED 1)
+ set(KWSYS_CXX_HAS_RLIMIT64_COMPILED 0)
+ set(KWSYS_CXX_HAS_SETENV_COMPILED 0)
+ set(KWSYS_CXX_HAS_UNSETENV_COMPILED 0)
+ set(KWSYS_CXX_HAS_UTIMENSAT_COMPILED 0)
+ set(KWSYS_CXX_HAS_UTIMES_COMPILED 0)
+ set(KWSYS_CXX_STAT_HAS_ST_MTIM_COMPILED 0)
+ set(KWSYS_CXX_STAT_HAS_ST_MTIMESPEC_COMPILED 0)
+ set(KWSYS_STL_HAS_WSTRING_COMPILED 1)
+ set(KWSYS_SYS_HAS_IFADDRS_H 0)
+ endif()
add_subdirectory(Source/kwsys)
set(kwsys_folder "Utilities/KWSys")
CMAKE_SET_TARGET_FOLDER(${KWSYS_NAMESPACE} "${kwsys_folder}")