Skip to content

Commit 0f4357a

Browse files
committed
fix cpm
1 parent e14e4cc commit 0f4357a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cmake/ModuleHelpers.cmake

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
include_guard(GLOBAL)
22

3-
if(NOT USERVER_CONAN)
4-
include(DownloadUsingCPM)
5-
endif()
6-
73
cmake_policy(SET CMP0054 NEW)
84

95
macro(_userver_module_begin)
@@ -373,6 +369,8 @@ macro(_userver_module_end)
373369
endmacro()
374370

375371
macro(_userver_cpm_addpackage name)
372+
include(DownloadUsingCPM)
373+
376374
set(EXTRA_ARGS)
377375
if(ARG_CPM_DOWNLOAD_ONLY)
378376
set(EXTRA_ARGS ${EXTRA_ARGS} DOWNLOAD_ONLY)

0 commit comments

Comments
 (0)