Skip to content

Commit

Permalink
remove the ""
Browse files Browse the repository at this point in the history
  • Loading branch information
TingDaoK committed Oct 10, 2024
1 parent 457d5ae commit 703c832
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmake/AwsPrebuildDependency.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,18 @@ 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)
if(WIN32)
list(JOIN CMAKE_PREFIX_PATH ";" PREFIX_PATH_STR)
else()
list(JOIN CMAKE_PREFIX_PATH ":" PREFIX_PATH_STR)
endif()
message(STATUS "XXXXXXXXXXXX PREFIX_PATH_STR ${PREFIX_PATH_STR}")

# 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=${PREFIX_PATH_STR})
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})
Expand Down

0 comments on commit 703c832

Please sign in to comment.