Skip to content

Commit 47eb79e

Browse files
committed
Set custom install prefix in presets
It makes sense to install those development builds by default under a custom prefix next to the build directories. This does not cover additional presets (that already override the install prefix) yet.
1 parent e8114c2 commit 47eb79e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakePresets.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"description": "Keeps defaults, uses Ninja, base for any of the other presets",
99
"generator": "Ninja",
1010
"binaryDir": "$env{BUILD_DIR}/${sourceDirName}/default",
11-
"cacheVariables": {},
11+
"cacheVariables": {
12+
"CMAKE_INSTALL_PREFIX": {"type": "PATH", "value": "$env{BUILD_DIR}/install-prefix"}
13+
},
1214
"environment": {"TEST_FILE_PATH": "${sourceDir}/testfiles"}
1315
},
1416
{

0 commit comments

Comments
 (0)