From eea831a90326412bed00422a9deef39406fba192 Mon Sep 17 00:00:00 2001
From: Louis Moureaux <louis.moureaux@cern.ch>
Date: Mon, 25 Mar 2024 01:08:15 +0100
Subject: [PATCH] Move the Darwin binary dir next to Darwin

This allows rebuilding Darwin only with:

    cmake --build $INSTALLER_BASE/Darwin.build

Closes issue #16.
---
 CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d0d265c..8c5f143 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -49,6 +49,7 @@ ExternalProject_Add(Darwin
     GIT_TAG             origin/master
     SOURCE_DIR          "${CMAKE_SOURCE_DIR}/Darwin"
     CMAKE_ARGS          -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR> -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
+    BINARY_DIR          "${CMAKE_SOURCE_DIR}/Darwin.build"
     INSTALL_DIR         "${CMAKE_INSTALL_PREFIX}"
     TEST_AFTER_INSTALL  ON
 )
-- 
GitLab