Commit 0650a0f4 authored by Thibaut ROMAIN's avatar Thibaut ROMAIN
Browse files

BUG: install boost cmake files using the right place

parent 3d13f0bc
Pipeline #8661 failed with stages
in 101 minutes and 7 seconds
......@@ -38,4 +38,16 @@ function(install_cmake_files)
install_without_message("${_qt5_folder}" "lib/cmake")
endforeach()
#install boost cmake files
file(GLOB _boost_main_cmake "${SUPERBUILD_INSTALL_DIR}/lib/cmake/Boost-*")
file(GLOB _boost_modules_cmake "${SUPERBUILD_INSTALL_DIR}/lib/cmake/boost_*")
file(GLOB _boost_detect_file "${SUPERBUILD_INSTALL_DIR}/lib/cmake/BoostDetectToolset-*.cmake")
foreach(_boost_cmake_file ${_boost_main_cmake})
install_without_message("${_boost_cmake_file}" "lib/cmake")
endforeach()
foreach(_boost_module_file ${_boost_modules_cmake})
install_without_message("${_boost_module_file}" "lib/cmake")
endforeach()
install_without_message("${_boost_detect_file}" "lib/cmake")
endfunction()
......@@ -41,15 +41,6 @@ function(prepare_file_list file_list_result)
list(APPEND file_list "${_configured}")
endforeach()
# find Boost targets
set(_boost_targets_path
"${SUPERBUILD_INSTALL_DIR}/lib/cmake/Boost-*"
"${SUPERBUILD_INSTALL_DIR}/lib/cmake/boost_*")
file(GLOB _boost_detect_file "${SUPERBUILD_INSTALL_DIR}/lib/cmake/BoostDetectToolset-*.cmake")
set(_IMPORT_PREFIX ${SUPERBUILD_INSTALL_DIR})
list(APPEND file_list ${_boost_targets_path})
list(APPEND file_list ${_boost_detect_file})
if(HAVE_PYTHON)
list(APPEND file_list "_otbApplication${PYMODULE_EXT}")
endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment