diff options
author | Brad King <brad.king@kitware.com> | 2020-06-05 11:57:50 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-06-05 11:58:38 (GMT) |
commit | 3414ee155e0423284a9171497d7724828fd324a5 (patch) | |
tree | d5e80a5eafa6817b0a5841860d14d718840df4f3 /Source | |
parent | 6aa87468100c1d6f518df1a48efbd42d6f4a59e2 (diff) | |
parent | 9f3923893ceff962d733bba839457a4c75d045f0 (diff) | |
download | CMake-3414ee155e0423284a9171497d7724828fd324a5.zip CMake-3414ee155e0423284a9171497d7724828fd324a5.tar.gz CMake-3414ee155e0423284a9171497d7724828fd324a5.tar.bz2 |
Merge topic 'reduce-try_compile'
9f3923893c libarchive: Map fixed-size integer types from KWIML as typedefs
d20bf471c8 liblzma: Map fixed-size integer types from KWIML as typedefs
92c4316d81 KWSys: Hard-code try_compile results on Windows
2bc89f1a03 cmSystemTools: Hard-code try_compile results for Windows
d350d4668a libarchive: Hard-code try_compile results for bundled dependencies
bf60ac24ae Source: Assume elf.h does not exist on Windows
f408cc2c40 expat: Remove unused try_compile checks
6c4f3dcd7b Utilities: Update hard-coded try_compile results for third-party libraries
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4848
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 22d8032..1b6bb00 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -8,7 +8,9 @@ set(CMAKE_CXX_EXTENSIONS FALSE) include(CheckIncludeFile) # Check if we can build support for ELF parsing. -if(CMAKE_CXX_PLATFORM_ID MATCHES "OpenBSD") +if(WIN32) + set(HAVE_ELF_H 0) +elseif(CMAKE_CXX_PLATFORM_ID MATCHES "OpenBSD") CHECK_INCLUDE_FILES("stdint.h;elf_abi.h" HAVE_ELF_H) else() CHECK_INCLUDE_FILE("elf.h" HAVE_ELF_H) |