Skip to content

Commit

Permalink
another try to set env var
Browse files Browse the repository at this point in the history
  • Loading branch information
TingDaoK committed Oct 10, 2024
1 parent 891f8d1 commit d62a7bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/AwsPrebuildDependency.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ 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 -E env CMAKE_PREFIX_PATH="$PREFIX_PATH_STR")
list(APPEND cmakeCommand -S ${AWS_PREBUILD_SOURCE_DIR})
list(APPEND cmakeCommand -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE})
list(APPEND cmakeCommand -DCMAKE_INSTALL_PREFIX=${depInstallDir})
Expand All @@ -49,6 +48,7 @@ function(aws_prebuild_dependency)

message(STATUS "XXXXXXXXXXXX cmakeCommand ${cmakeCommand}")
# Configure dependency project.
set(ENV{CMAKE_PREFIX_PATH} ${PREFIX_PATH_STR})
execute_process(
COMMAND ${cmakeCommand}
WORKING_DIRECTORY ${depBinaryDir}
Expand Down

0 comments on commit d62a7bf

Please sign in to comment.