diff options
author | Brad King <brad.king@kitware.com> | 2020-06-03 11:04:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-06-03 11:48:52 (GMT) |
commit | bf60ac24ae154b2e54dd298e8215611f7b4dcf4c (patch) | |
tree | a7f5d74588fa3174b6303be57764812b96ea2ca7 /Source/CMakeLists.txt | |
parent | f408cc2c40f0ea853875611417ad499a382515ea (diff) | |
download | CMake-bf60ac24ae154b2e54dd298e8215611f7b4dcf4c.zip CMake-bf60ac24ae154b2e54dd298e8215611f7b4dcf4c.tar.gz CMake-bf60ac24ae154b2e54dd298e8215611f7b4dcf4c.tar.bz2 |
Source: Assume elf.h does not exist on Windows
Diffstat (limited to 'Source/CMakeLists.txt')
-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) |