From 772fade772de9cef4a987791cab62b34fb4d8e31 Mon Sep 17 00:00:00 2001 From: Daljit Singh Date: Mon, 20 Jan 2025 09:47:12 +0000 Subject: [PATCH] FIX: don't add gui subdirectory with BUILD_GUI=OFF --- cpp/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 0319494577..128bf29ce0 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -38,4 +38,7 @@ endif() add_subdirectory(cmd) add_subdirectory(core) -add_subdirectory(gui) + +if(MRTRIX_BUILD_GUI) + add_subdirectory(gui) +endif()