Skip to content

Commit 51ede8f

Browse files
committed
Make IPLUG2_DIR a CACHE PATH so it can be overridden
Promoting IPLUG2_DIR to a CACHE PATH lets a caller override it via -DIPLUG2_DIR=/path on the cmake command line; the default remains the in-tree submodule so existing workflows are unaffected.
1 parent 1b011f2 commit 51ede8f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
cmake_minimum_required(VERSION 3.25)
22
project(iPlug2OOS)
33

4-
set(IPLUG2_DIR ${CMAKE_SOURCE_DIR}/iPlug2)
4+
# iPlug2 framework location. Default to the in-tree submodule, but allow an
5+
# external canonical checkout via `-DIPLUG2_DIR=/path` or the IPLUG2_DIR
6+
# environment variable. iPlug2 Agent sets this to a shared per-machine
7+
# checkout so individual plugin projects don't each carry ~2 GB of deps.
8+
set(IPLUG2_DIR "${CMAKE_SOURCE_DIR}/iPlug2" CACHE PATH "Path to the iPlug2 framework root")
59
include(${IPLUG2_DIR}/iPlug2.cmake)
610

711
find_package(iPlug2 REQUIRED)

0 commit comments

Comments
 (0)