Skip to content

Commit a0663be

Browse files
authored
Update CMakeLists.txt
1 parent 14bb75f commit a0663be

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ if(NOT ${CMAKE_PROJECT_NAME} STREQUAL ${PROJECT_NAME})
3838
else()
3939
set(CPM_RELEASE TRUE)
4040
endif()
41+
# Trick to use the find_package
42+
configure_file(
43+
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/CPM.cmake" "${CMAKE_CURRENT_BINARY_DIR}/CPM.cmake" COPYONLY
44+
)
45+
set(CPM_DIR "${CMAKE_CURRENT_BINARY_DIR}")
4146
include(cmake/CPM.cmake)
4247
endif()
4348

0 commit comments

Comments
 (0)