From 1d35ae32b8c92bd24f727826f6c75c84d1699fc8 Mon Sep 17 00:00:00 2001 From: Daljit Singh Date: Wed, 15 Nov 2023 11:22:53 +0000 Subject: [PATCH] Make mrtrix::gui to not depend on shared mrtrix::headless Use LINK_DEPENDS_NO_SHARED to ensure that the gui library does not have a file level dependency on the shared library files of the mrtrix::headless lib. This prevents mrtrix::gui to be relinked on every modification of mrtrix::headless. --- src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f11f77cc1d..05d9428b3f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -66,6 +66,7 @@ if(MRTRIX_BUILD_GUI) set_target_properties(mrtrix-gui PROPERTIES AUTOMOC ON AUTOUIC ON + LINK_DEPENDS_NO_SHARED ON ) target_link_libraries(mrtrix-gui PUBLIC