@@ -884,8 +884,9 @@ function(CPMAddPackage)
884
884
# Calling FetchContent_MakeAvailable will then internally forward these options to
885
885
# add_subdirectory. Up until these changes, we had to call FetchContent_Populate and
886
886
# add_subdirectory separately, which is no longer necessary and has been deprecated as of 3.30.
887
+ # A Bug in CMake prevents us to use the non-deprecated functions until 3.30.3.
887
888
set (fetchContentDeclareExtraArgs "" )
888
- if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.28.0 " )
889
+ if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.30.3 " )
889
890
if (${CPM_ARGS_EXCLUDE_FROM_ALL} )
890
891
list (APPEND fetchContentDeclareExtraArgs EXCLUDE_FROM_ALL )
891
892
endif ()
@@ -911,7 +912,7 @@ function(CPMAddPackage)
911
912
if (CPM_SOURCE_CACHE AND download_directory )
912
913
file (LOCK ${download_directory} /../cmake.lock RELEASE )
913
914
endif ()
914
- if (${populated} AND ${CMAKE_VERSION} VERSION_LESS "3.28.0 " )
915
+ if (${populated} AND ${CMAKE_VERSION} VERSION_LESS "3.30.3 " )
915
916
cpm_add_subdirectory (
916
917
"${CPM_ARGS_NAME} "
917
918
"${DOWNLOAD_ONLY} "
@@ -1113,7 +1114,7 @@ function(cpm_fetch_package PACKAGE DOWNLOAD_ONLY populated)
1113
1114
string (TOLOWER "${PACKAGE} " lower_case_name )
1114
1115
1115
1116
if (NOT ${lower_case_name} _POPULATED )
1116
- if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.28.0 " )
1117
+ if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.30.3 " )
1117
1118
if (DOWNLOAD_ONLY )
1118
1119
# MakeAvailable will call add_subdirectory internally which is not what we want when
1119
1120
# DOWNLOAD_ONLY is set. Populate will only download the dependency without adding it to the
0 commit comments