From 9d0fd1f5b6641cb2b673f7ff345b0506448b02e1 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Wed, 27 Dec 2023 01:10:08 +0100 Subject: [PATCH] build: Try to fix Fedora build issues --- cmake/build_helpers.cmake | 14 +++++++++----- dist/rpm/imhex.spec | 1 - 2 files changed, 9 insertions(+), 6 deletions(-) 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