From 8c99147f04def0bbfca34ea02dd611febce6ca37 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Sun, 2 Jun 2024 15:38:12 -0400 Subject: [PATCH] build: Build cmake presets in distinct binary dirs It may use more disk space, but we really don't have a choice. CMake projects with different parameters, preprocessors, source files, etc. are not designed to share binary dirs. For example, the libspark.so file that the Spark front-end is supposed to use is not necessarily the same as the libspark.so file the Api Server is supposed use. --- CMakePresets.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakePresets.json b/CMakePresets.json index 67904f658..b574b2bc5 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -15,7 +15,7 @@ "rhs": "Windows" }, "generator": "Visual Studio 17 2022", - "binaryDir": "${sourceDir}/build", + "binaryDir": "${sourceDir}/build/${presetName}", "environment": { "SPARK_CMAKE_CXX_FLAGS": "/MP /WX /wd4250 /wd4251 /wd4244 /wd4267 /wd4355 /wd4275 /wd4345 /bigobj /EHsc /DCURL_STATICLIB /D_WINSOCK_DEPRECATED_NO_WARNINGS /D__TBB_NO_IMPLICIT_LINKAGE /DBOOST_ALL_NO_LIB /std:c++20 /D_SCL_SECURE_NO_WARNINGS /D_CRT_SECURE_NO_WARNINGS /D_WIN32_WINNT=0x0600" },