Commit 1420ef44 authored by Martin Heistermann's avatar Martin Heistermann

cmake: do not try to install non-existnt generated Config.cmake, install cmake...

cmake: do not try to install non-existnt generated Config.cmake, install cmake files in INSTALL_CONFIGDIR
parent 17bb8471
Pipeline #12058 failed with stages
in 16 seconds
......@@ -592,9 +592,14 @@ if(NOT COMISO_NO_INSTALL)
install(FILES
"${CMAKE_CURRENT_BINARY_DIR}/CoMISoConfigVersion.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/CoMISoConfig.cmake"
"${CMAKE_CURRENT_LIST_DIR}/cmake/CoMISoConfig.cmake"
DESTINATION ${INSTALL_CONFIGDIR})
install(EXPORT CoMISoTargets
FILE CoMISoTargets.cmake
NAMESPACE CoMISo::
DESTINATION ${INSTALL_CONFIGDIR})
)
# Install library
install (TARGETS CoMISo EXPORT CoMISoTargets
......@@ -622,14 +627,6 @@ if(NOT COMISO_NO_INSTALL)
DESTINATION include/CoMISo/Config )
install(EXPORT CoMISoTargets
FILE CoMISoTargets.cmake
NAMESPACE CoMISo::
DESTINATION cmake)
install(FILES "${CMAKE_CURRENT_LIST_DIR}/cmake/CoMISoConfig.cmake"
DESTINATION cmake
)
export(EXPORT CoMISoTargets
NAMESPACE CoMISo::)
......
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