From 79ecf7fa594b5a403bed2c19e2e1d59be04a2b2c Mon Sep 17 00:00:00 2001 From: WerWolv Date: Wed, 1 Feb 2023 09:38:03 +0100 Subject: [PATCH] build: Fix non-Windows build --- CMakeLists.txt | 2 +- cmake/build_helpers.cmake | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 214527daf..24df8d989 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,7 +48,7 @@ addBundledLibraries() # Add ImHex sources add_subdirectory(lib/libimhex) add_subdirectory(main) -add_custom_target(imhex ALL DEPENDS main libimhex ${PLUGINS}) +add_custom_target(imhex ALL DEPENDS main libimhex) # Add unit tests enable_testing() diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index c65f5d0f2..5f241af67 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -184,6 +184,8 @@ macro(createPackage) install(TARGETS ${plugin} LIBRARY DESTINATION ${PLUGINS_INSTALL_LOCATION}) endif () endif () + + add_dependencies(imhex ${plugin}) endif () endforeach()