diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index 78e52f07b..316597487 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -157,13 +157,17 @@ macro(createPackage) set_target_properties(${plugin} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins) endif () else () - - get_target_property(target_type ${plugin} TYPE) - if (target_type STREQUAL "SHARED_LIBRARY") - install(TARGETS ${plugin} RUNTIME DESTINATION ${PLUGINS_INSTALL_LOCATION}) - else () + if (WIN32) + get_target_property(target_type ${plugin} TYPE) + if (target_type STREQUAL "SHARED_LIBRARY") + install(TARGETS ${plugin} RUNTIME DESTINATION ${PLUGINS_INSTALL_LOCATION}) + else () + install(TARGETS ${plugin} LIBRARY DESTINATION ${PLUGINS_INSTALL_LOCATION}) + endif() + else() install(TARGETS ${plugin} LIBRARY DESTINATION ${PLUGINS_INSTALL_LOCATION}) endif() + endif() add_dependencies(imhex_all ${plugin}) diff --git a/dist/rpm/imhex.spec b/dist/rpm/imhex.spec index e90ff47fc..8b6f24a8f 100644 --- a/dist/rpm/imhex.spec +++ b/dist/rpm/imhex.spec @@ -126,7 +126,6 @@ cp -a lib/third_party/xdgpp/LICENSE %{buildroot %{_libdir}/libimhex.so* %{_libdir}/%{name}/ %{_metainfodir}/net.werwolv.%{name}.metainfo.xml -%{_datadir}/%{name}/sdk/ %changelog