diff options
author | Brad King <brad.king@kitware.com> | 2013-06-24 12:38:02 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-06-24 12:38:02 (GMT) |
commit | 1576592d02a67af91ce01f9fc2c00211132e9254 (patch) | |
tree | 918d54a088e68c8b30c21de6459cb731444f5c98 /Source/CMakeLists.txt | |
parent | eadb85ff6cce8211046d906adfe9883477ecffae (diff) | |
parent | 480e924daedee520d18c8a9c0b9823fef205b57a (diff) | |
download | CMake-1576592d02a67af91ce01f9fc2c00211132e9254.zip CMake-1576592d02a67af91ce01f9fc2c00211132e9254.tar.gz CMake-1576592d02a67af91ce01f9fc2c00211132e9254.tar.bz2 |
Merge topic 'openbsd-elf-parsing'
480e924 OpenBSD: Enable ELF parsing and editing (#14241)
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r-- | Source/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index a243702..70d4b48 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -11,7 +11,11 @@ #============================================================================= include(CheckIncludeFile) # Check if we can build support for ELF parsing. -CHECK_INCLUDE_FILE("elf.h" HAVE_ELF_H) +if(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) +endif() if(HAVE_ELF_H) set(CMAKE_USE_ELF_PARSER 1) else() |