#2011 libecl: Add INSTALL_ERT to control install targets

This commit is contained in:
Jacob Støren committed 2017-10-26 17:16:42 +02:00
1 parent 04404c3b2c
commit 57a5f7fc66
2 files changed
+6 -2

No files matched your search

+4 -1
View File
@@ -363,6 +363,9 @@ if (BUILD_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)
+2 -1
View File
@@ -220,7 +220,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}
@@ -245,6 +245,7 @@ if (ERT_BUILD_CXX)
PATTERN *.hpp
)
endif ()
endif()
if (NOT BUILD_TESTS)
return ()