Skip to content

Commit 406e70a

Browse files
committed
Avoid polluting source tree with Go cache
Put GOPATH under BUILD_DIR when using presets
1 parent 088f2a2 commit 406e70a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakePresets.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"generator": "Ninja",
1010
"binaryDir": "$env{BUILD_DIR}/${sourceDirName}/default",
1111
"cacheVariables": {
12-
"CMAKE_INSTALL_PREFIX": {"type": "PATH", "value": "$env{BUILD_DIR}/install-prefix"}
12+
"CMAKE_INSTALL_PREFIX": {"type": "PATH", "value": "$env{BUILD_DIR}/install-prefix"},
13+
"GO_DEVELOPMENT_PATH": {"type": "PATH", "value": "$env{BUILD_DIR}/go-path"}
1314
},
1415
"environment": {"TEST_FILE_PATH": "${sourceDir}/testfiles"}
1516
},

0 commit comments

Comments
 (0)