#4266 : libecl : Applied patch related to install

This commit is contained in:
Magne Sjaastad 2019-05-09 09:25:31 +02:00
parent bddbbebdcc
commit 6f78404f92
2 changed files with 6 additions and 2 deletions

View File

@ -346,6 +346,9 @@ if (ENABLE_PYTHON)
endif()
endif()
install(EXPORT ecl-config DESTINATION share/cmake/ecl)
if (INSTALL_ERT)
install(EXPORT ecl-config DESTINATION share/cmake/ecl)
endif()
export(TARGETS ecl FILE eclConfig.cmake)
export(PACKAGE ecl)

View File

@ -200,7 +200,7 @@ endif ()
set_target_properties(ecl PROPERTIES
VERSION ${ECL_VERSION_MAJOR}.${ECL_VERSION_MINOR}
SOVERSION ${ECL_VERSION_MAJOR})
if (INSTALL_ERT)
install(TARGETS ecl
EXPORT ecl-config
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
@ -212,6 +212,7 @@ install(DIRECTORY include/
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include/
DESTINATION include
)
endif()
if (NOT BUILD_TESTS)
return ()