summaryrefslogtreecommitdiffstats
path: root/Source/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-06-03 11:04:13 (GMT)
committerBrad King <brad.king@kitware.com>2020-06-03 11:48:52 (GMT)
commitbf60ac24ae154b2e54dd298e8215611f7b4dcf4c (patch)
treea7f5d74588fa3174b6303be57764812b96ea2ca7 /Source/CMakeLists.txt
parentf408cc2c40f0ea853875611417ad499a382515ea (diff)
downloadCMake-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.txt4
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)