From e39f8bbbec0be3a32530e83cc6ae6d4f30ec5806 Mon Sep 17 00:00:00 2001 From: Emmanuel Christophe <emmanuel.christophe@orfeo-toolbox.org> Date: Sun, 7 Feb 2010 12:28:14 +0800 Subject: [PATCH] BUG: fix boost installation --- Utilities/BGL/boost/CMakeLists.txt | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/Utilities/BGL/boost/CMakeLists.txt b/Utilities/BGL/boost/CMakeLists.txt index 441051c9e2..68f6b58543 100644 --- a/Utilities/BGL/boost/CMakeLists.txt +++ b/Utilities/BGL/boost/CMakeLists.txt @@ -1,21 +1,8 @@ IF(NOT OTB_INSTALL_NO_DEVELOPMENT) - -set(BOOST_FOLDER_LIST "bfunctional;bind;butility;config;detail;function;graph;iterator;mpl;optional;pending;preprocessor;spirit;tuple;type_traits") - FILE(GLOB __files1 "${CMAKE_CURRENT_SOURCE_DIR}/*.h") - FILE(GLOB __files2 "${CMAKE_CURRENT_SOURCE_DIR}/*.txx") - FILE(GLOB __files3 "${CMAKE_CURRENT_SOURCE_DIR}/*.hpp") - INSTALL(FILES ${__files1} ${__files2} ${__files3} - DESTINATION ${OTB_INSTALL_INCLUDE_DIR_CM24}/Utilities/BGL/boost - COMPONENT Development) - - foreach(folder ${BOOST_FOLDER_LIST}) - FILE(GLOB __files1 "${CMAKE_CURRENT_SOURCE_DIR}/${folder}/*.h") - FILE(GLOB __files2 "${CMAKE_CURRENT_SOURCE_DIR}/${folder}/*.txx") - FILE(GLOB __files3 "${CMAKE_CURRENT_SOURCE_DIR}/${folder}/*.hpp") - INSTALL(FILES ${__files1} ${__files2} ${__files3} - DESTINATION ${OTB_INSTALL_INCLUDE_DIR_CM24}/Utilities/BGL/boost/${folder} - COMPONENT Development) - endforeach(folder) + install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + DESTINATION ${OTB_INSTALL_INCLUDE_DIR_CM24}/Utilities/BGL/boost/ + FILES_MATCHING PATTERN "*.hpp") + ENDIF(NOT OTB_INSTALL_NO_DEVELOPMENT) -- GitLab