Skip to content

Commit 0711ac1

Browse files
committed
cmake-format
1 parent eb8461d commit 0711ac1

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
@@ -26,7 +26,6 @@ if(NOT ${CMAKE_PROJECT_NAME} STREQUAL ${PROJECT_NAME})
2626
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/CPM.cmake" "${CMAKE_CURRENT_BINARY_DIR}/CPM.cmake" COPYONLY
2727
)
2828
set(CPM_DIR "${CMAKE_CURRENT_BINARY_DIR}")
29-
find_package(CPM CONFIG REQUIRED NO_POLICY_SCOPE)
3029
# Check if the user download the repo with git and not in an official release
3130
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git" AND IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/.git")
3231
find_package(Git REQUIRED QUIET)
@@ -44,6 +43,7 @@ if(NOT ${CMAKE_PROJECT_NAME} STREQUAL ${PROJECT_NAME})
4443
set(CPM_RELEASE FALSE)
4544
endif()
4645
endif()
46+
find_package(CPM CONFIG REQUIRED NO_POLICY_SCOPE)
4747
endif()
4848

4949
if(CPM_INSTALL)

0 commit comments

Comments
 (0)