Skip to content

Commit c5f7512

Browse files
benjacamBen Campbell
and
Ben Campbell
authored
Correct configure file output by adding CMAKE_BINARY_DIR (#437)
Co-authored-by: Ben Campbell <[email protected]>
1 parent 79b3f7a commit c5f7512

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ if (BUILD_SDK)
168168
set(BUILD_DEPS ON CACHE BOOL "Build dependencies for the AWS SDK" FORCE)
169169
set(USE_OPENSSL ON CACHE BOOL "Use OpenSSL instead of aws-lc" FORCE)
170170
configure_file(CMakeLists.txt.awssdk
171-
aws-iot-device-sdk-cpp-v2-download/CMakeLists.txt)
171+
${CMAKE_BINARY_DIR}/aws-iot-device-sdk-cpp-v2-download/CMakeLists.txt)
172172
execute_process(COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" .
173173
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/aws-iot-device-sdk-cpp-v2-download)
174174
execute_process(COMMAND ${CMAKE_COMMAND} --build .
@@ -248,7 +248,7 @@ endif ()
248248
if (BUILD_TEST_DEPS)
249249
# Download and unpack googletest at configure time
250250
configure_file(CMakeLists.txt.gtest
251-
googletest-download/CMakeLists.txt)
251+
${CMAKE_BINARY_DIR}/googletest-download/CMakeLists.txt)
252252
execute_process(COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" .
253253
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/googletest-download)
254254
execute_process(COMMAND ${CMAKE_COMMAND} --build .

0 commit comments

Comments
 (0)