summaryrefslogtreecommitdiff
path: root/Utilities/cmexpat
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-05-24 12:59:55 -0400
committerBrad King <brad.king@kitware.com>2021-05-24 12:59:55 -0400
commit49693fab0d8380123a9c5442dbed480f0a35a244 (patch)
tree6f5705359b20e33c9e641623964f21eaf55dee38 /Utilities/cmexpat
parentbea145eb25a3f68bb2926e83650485bde00645c2 (diff)
downloadcmake-49693fab0d8380123a9c5442dbed480f0a35a244.tar.gz
cmexpat: Create expat_config.h in build within CMake itself
Expat 2.4.1 no longer supports compiling without this header.
Diffstat (limited to 'Utilities/cmexpat')
-rw-r--r--Utilities/cmexpat/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Utilities/cmexpat/CMakeLists.txt b/Utilities/cmexpat/CMakeLists.txt
index 904809683a..ce7292728b 100644
--- a/Utilities/cmexpat/CMakeLists.txt
+++ b/Utilities/cmexpat/CMakeLists.txt
@@ -7,6 +7,8 @@ ELSEIF(CMAKE_C_COMPILER_ID STREQUAL "PathScale")
ENDIF()
include(ConfigureChecks.cmake)
+configure_file(expat_config.h.cmake expat_config.h @ONLY)
+
if(NOT WIN32)
add_definitions(-DXML_DEV_URANDOM)
endif()