Skip to content
Snippets Groups Projects
Commit 246731ae authored by Lars Bilke's avatar Lars Bilke Committed by Dmitri Naumov
Browse files

[CMake] Fixed installation of shared libraries / DLLs.

INSTALL_COMPONENT was not defined and therefore the shared libraries
were not installed.
parent 3b3bfcaf
No related branches found
No related tags found
No related merge requests found
......@@ -31,4 +31,4 @@ cpack_add_component(ogs_cli
)
include(packaging/InstallDependencies)
InstallDependencies(ogs ogs_cli)
InstallDependencies(ogs)
......@@ -128,4 +128,4 @@ if(APPLE)
endif()
include(packaging/InstallDependencies)
InstallDependencies(DataExplorer ogs_gui)
InstallDependencies(DataExplorer)
......@@ -35,7 +35,7 @@ foreach(TARGET ${INSTALL_DEPENDENCIES})
if(PRE_INSTALL_RUN)
message("")
endif()
install(FILES ${DEPENDENCY_PATHS} DESTINATION bin COMPONENT ${INSTALL_COMPONENT})
install(FILES ${DEPENDENCY_PATHS} DESTINATION bin)
endif()
endforeach()
......
# Registers a target for installing its dependencies (dll / so files)
macro(InstallDependencies TARGET INSTALL_COMPONENT)
macro(InstallDependencies TARGET)
set(INSTALL_DEPENDENCIES "${INSTALL_DEPENDENCIES};${TARGET}" CACHE INTERNAL "")
endmacro()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment