Skip to content

Commit

Permalink
Correct configure file output by adding CMAKE_BINARY_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Campbell committed Nov 15, 2023
1 parent 0f91380 commit 33ef1f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ if (BUILD_SDK)
set(BUILD_DEPS ON CACHE BOOL "Build dependencies for the AWS SDK" FORCE)
set(USE_OPENSSL ON CACHE BOOL "Use OpenSSL instead of aws-lc" FORCE)
configure_file(CMakeLists.txt.awssdk
aws-iot-device-sdk-cpp-v2-download/CMakeLists.txt)
${CMAKE_BINARY_DIR}/aws-iot-device-sdk-cpp-v2-download/CMakeLists.txt)
execute_process(COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" .
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/aws-iot-device-sdk-cpp-v2-download)
execute_process(COMMAND ${CMAKE_COMMAND} --build .
Expand Down Expand Up @@ -248,7 +248,7 @@ endif ()
if (BUILD_TEST_DEPS)
# Download and unpack googletest at configure time
configure_file(CMakeLists.txt.gtest
googletest-download/CMakeLists.txt)
${CMAKE_BINARY_DIR}/googletest-download/CMakeLists.txt)
execute_process(COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" .
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/googletest-download)
execute_process(COMMAND ${CMAKE_COMMAND} --build .
Expand Down

0 comments on commit 33ef1f7

Please sign in to comment.