Skip to content

Commit 03027e0

Browse files
authored
Update CMakeLists.txt
1 parent fa5058c commit 03027e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if(NOT ${CMAKE_PROJECT_NAME} STREQUAL ${PROJECT_NAME})
4242
configure_file(
4343
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/CPM.cmake" "${CMAKE_CURRENT_BINARY_DIR}/CPM.cmake" COPYONLY
4444
)
45-
set(CPM_DIR "${CMAKE_CURRENT_BINARY_DIR}")
45+
set(CPM_DIR "${CMAKE_CURRENT_BINARY_DIR}" PARENT_SCOPE)
4646
include(cmake/CPM.cmake)
4747
endif()
4848

0 commit comments

Comments
 (0)