From a62c71e60c8df1473966da0a9976f4276fe238f0 Mon Sep 17 00:00:00 2001 From: Dengke Date: Fri, 11 Oct 2024 11:25:49 -0700 Subject: [PATCH] another try? --- cmake/AwsPrebuildDependency.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/AwsPrebuildDependency.cmake b/cmake/AwsPrebuildDependency.cmake index 40743d5dc..f5fadd72c 100644 --- a/cmake/AwsPrebuildDependency.cmake +++ b/cmake/AwsPrebuildDependency.cmake @@ -26,14 +26,14 @@ function(aws_prebuild_dependency) file(MAKE_DIRECTORY ${depBinaryDir}) message(STATUS "XXXXXXXXXXXX depBinaryDir ${depBinaryDir}") message(STATUS "XXXXXXXXXXXX CMAKE_COMMAND ${CMAKE_COMMAND}") - list(JOIN CMAKE_PREFIX_PATH "\\;" PREFIX_PATH_STR) - message(STATUS "XXXXXXXXXXXX PREFIX_PATH_STR ${PREFIX_PATH_STR}") + string(REPLACE ";" "\\;" ESCAPDED_PREFIX_PATH "${CMAKE_PREFIX_PATH}") + message(STATUS "XXXXXXXXXXXX ESCAPDED_PREFIX_PATH ${ESCAPDED_PREFIX_PATH}") # 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 -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}) - list(APPEND cmakeCommand -DCMAKE_PREFIX_PATH=${PREFIX_PATH_STR}) + list(APPEND cmakeCommand -DCMAKE_PREFIX_PATH=${ESCAPDED_PREFIX_PATH}) list(APPEND cmakeCommand -DCMAKE_INSTALL_PREFIX=${depInstallDir}) list(APPEND cmakeCommand -DCMAKE_INSTALL_RPATH=${CMAKE_INSTALL_RPATH}) list(APPEND cmakeCommand -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS})