From 9b74f7b38b06ed4f1fc2a8fce19663d881b4b0fe Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Fri, 8 Oct 2021 12:48:16 +0200 Subject: [PATCH] BUG: fix installation of the generated file expat_config.h --- Modules/ThirdParty/Expat/src/expat/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/ThirdParty/Expat/src/expat/CMakeLists.txt b/Modules/ThirdParty/Expat/src/expat/CMakeLists.txt index 624214034a4..f21cfe670e6 100644 --- a/Modules/ThirdParty/Expat/src/expat/CMakeLists.txt +++ b/Modules/ThirdParty/Expat/src/expat/CMakeLists.txt @@ -176,7 +176,7 @@ CONFIGURE_FILE(${ITK3P_EXPAT_SOURCE_DIR}/expatConfig.h.in CONFIGURE_FILE(${ITK3P_EXPAT_SOURCE_DIR}/expatDllConfig.h.in ${ITK3P_EXPAT_BINARY_DIR}/expatDllConfig.h) -configure_file(expat_config.h.cmake "${CMAKE_CURRENT_BINARY_DIR}/expat_config.h") +configure_file(expat_config.h.cmake "${ITK3P_EXPAT_BINARY_DIR}/expat_config.h") ADD_LIBRARY(ITKEXPAT ${expat_SRCS}) @@ -195,7 +195,7 @@ INSTALL(TARGETS ITKEXPAT INSTALL(FILES ${ITK3P_EXPAT_BINARY_DIR}/expatDllConfig.h ${ITK3P_EXPAT_SOURCE_DIR}/expat.h - ${ITK3P_EXPAT_SOURCE_DIR}/expat_config.h + ${ITK3P_EXPAT_BINARY_DIR}/expat_config.h ${ITK3P_EXPAT_SOURCE_DIR}/itk_expat_mangle.h DESTINATION ${ITK3P_INSTALL_INCLUDE_DIR} # TODO: itk_expat.h #include "itkexpat/expat.h" COMPONENT Development)