1
0
mirror of synced 2024-11-28 01:20:51 +01:00

build: Try to fix Fedora build issues

This commit is contained in:
WerWolv 2023-12-27 01:10:08 +01:00
parent 4e0a93fc20
commit 9d0fd1f5b6
2 changed files with 9 additions and 6 deletions

View File

@ -157,13 +157,17 @@ macro(createPackage)
set_target_properties(${plugin} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins) set_target_properties(${plugin} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins)
endif () endif ()
else () else ()
if (WIN32)
get_target_property(target_type ${plugin} TYPE) get_target_property(target_type ${plugin} TYPE)
if (target_type STREQUAL "SHARED_LIBRARY") if (target_type STREQUAL "SHARED_LIBRARY")
install(TARGETS ${plugin} RUNTIME DESTINATION ${PLUGINS_INSTALL_LOCATION}) install(TARGETS ${plugin} RUNTIME DESTINATION ${PLUGINS_INSTALL_LOCATION})
else () else ()
install(TARGETS ${plugin} LIBRARY DESTINATION ${PLUGINS_INSTALL_LOCATION})
endif()
else()
install(TARGETS ${plugin} LIBRARY DESTINATION ${PLUGINS_INSTALL_LOCATION}) install(TARGETS ${plugin} LIBRARY DESTINATION ${PLUGINS_INSTALL_LOCATION})
endif() endif()
endif() endif()
add_dependencies(imhex_all ${plugin}) add_dependencies(imhex_all ${plugin})

1
dist/rpm/imhex.spec vendored
View File

@ -126,7 +126,6 @@ cp -a lib/third_party/xdgpp/LICENSE %{buildroot
%{_libdir}/libimhex.so* %{_libdir}/libimhex.so*
%{_libdir}/%{name}/ %{_libdir}/%{name}/
%{_metainfodir}/net.werwolv.%{name}.metainfo.xml %{_metainfodir}/net.werwolv.%{name}.metainfo.xml
%{_datadir}/%{name}/sdk/
%changelog %changelog