From 26986bc715f25a64645c242deab2c03153dc6ccf Mon Sep 17 00:00:00 2001 From: Dengke Date: Thu, 10 Oct 2024 14:46:47 -0700 Subject: [PATCH] add -B? --- cmake/AwsPrebuildDependency.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/AwsPrebuildDependency.cmake b/cmake/AwsPrebuildDependency.cmake index 5bb6c7d87..5c5da5332 100644 --- a/cmake/AwsPrebuildDependency.cmake +++ b/cmake/AwsPrebuildDependency.cmake @@ -28,6 +28,7 @@ function(aws_prebuild_dependency) # For execute_process to accept a dynamically constructed command, it should be passed in a list format. set(cmakeCommand "${CMAKE_COMMAND}") list(APPEND cmakeCommand -S ${AWS_PREBUILD_SOURCE_DIR}) + list(APPEND cmakeCommand -B ${depBinaryDir}) list(APPEND cmakeCommand -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}) list(APPEND cmakeCommand -DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}) list(APPEND cmakeCommand -DCMAKE_INSTALL_PREFIX=${depInstallDir})