Skip to content

Commit

Permalink
respect DOWNLOAD_ONLY flag
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLartians committed Feb 15, 2021
1 parent b80286e commit c309839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/CPM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ function(cpm_fetch_package PACKAGE DOWNLOAD_ONLY)

if(NOT ${lower_case_name}_POPULATED)
FetchContent_Populate(${PACKAGE})
if(EXISTS ${${lower_case_name}_SOURCE_DIR}/CMakeLists.txt)
if(NOT DOWNLOAD_ONLY AND EXISTS ${${lower_case_name}_SOURCE_DIR}/CMakeLists.txt)
set(CPM_OLD_INDENT "${CPM_INDENT}")
set(CPM_INDENT "${CPM_INDENT} ${PACKAGE}:")
add_subdirectory(
Expand Down

0 comments on commit c309839

Please sign in to comment.