From 22874f8bf50e80b7cd027c72b494a4b3675fa1bf Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Thu, 8 Jun 2017 15:15:20 +0200 Subject: [PATCH] CMake: fix install components --- CMakeLists.txt | 2 +- ng/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d399fbf9..4ca21f4c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -163,7 +163,7 @@ if(WIN32) endif(WIN32) set(NG_INSTALL_DIR EXPORT netgen-targets RUNTIME DESTINATION ${NG_INSTALL_DIR_BIN} COMPONENT netgen LIBRARY DESTINATION ${NG_INSTALL_DIR_LIB} COMPONENT netgen_devel ARCHIVE DESTINATION ${NG_INSTALL_DIR_LIB} COMPONENT netgen_devel) -install(EXPORT netgen-targets DESTINATION ${NG_INSTALL_DIR_CMAKE} ) +install(EXPORT netgen-targets DESTINATION ${NG_INSTALL_DIR_CMAKE} COMPONENT netgen-devel) set(CMAKE_MACOSX_RPATH TRUE) set(CMAKE_INSTALL_RPATH "${NG_RPATH_TOKEN};${NG_RPATH_TOKEN}/${NETGEN_RPATH}") diff --git a/ng/CMakeLists.txt b/ng/CMakeLists.txt index 23991339..6dd4d0b4 100644 --- a/ng/CMakeLists.txt +++ b/ng/CMakeLists.txt @@ -65,7 +65,7 @@ if(USE_PYTHON) set_target_properties( ngpy PROPERTIES OUTPUT_NAME "libngpy") endif() set_target_properties(ngpy PROPERTIES INSTALL_RPATH "${NG_RPATH_TOKEN}/../${NETGEN_PYTHON_RPATH}") - install(TARGETS ngpy DESTINATION ${NG_INSTALL_DIR_PYTHON}/${NG_INSTALL_SUFFIX} COMPONENT netgen) + install(TARGETS ngpy RUNTIME DESTINATION ${NG_INSTALL_DIR_PYTHON}/${NG_INSTALL_SUFFIX} ARCHIVE DESTINATION ${NG_INSTALL_DIR_LIB} COMPONENT netgen) endif(USE_PYTHON) if(USE_GUI)