Skip to content

Commit 48c4ef1

Browse files
Илья Ракитинgittiver
authored andcommitted
move CPM to CROW_BUILD_TESTS scope
1 parent 56bbc7d commit 48c4ef1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ project(Crow
1111

1212
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
1313

14-
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/CPM.cmake)
15-
1614
# Make sure Findasio.cmake module is found
1715
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
1816

@@ -255,6 +253,7 @@ endif()
255253

256254
# Tests
257255
if(CROW_BUILD_TESTS)
256+
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/CPM.cmake)
258257

259258
add_subdirectory(tests)
260259
enable_testing()

0 commit comments

Comments
 (0)