You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CMake 3.30 deprecates calling FetchContent_Populate with a single argument.
preferring FetchContent_MakeAvailable() should be preffered or FetchContent_Populate with atleast one extra argument must be used.
We've previously used FetchContent_Populate as older versions of FetchContent_MakeAvailable did not provide functionality we require (i.e. fetching projects which are not CMake projects).
CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.30/Modules/FetchContent.cmake:1953 (message):
Calling FetchContent_Populate(rapidjson) is deprecated, call
FetchContent_MakeAvailable(rapidjson) instead. Policy CMP0169 can be set
to OLD to allow FetchContent_Populate(rapidjson) to be called directly for
now, but the ability to call it with declared details will be removed
completely in a future version.
Unfortunately, this deprecation warning does not respect CMAKE_WARN_DEPRECATED, which combined with -Werror=dev means that CI is reporting failures.
Short term, we chould be able to set the policy to OLD for existing behaviour to continue functioning until the behaviour is removed.
Long term, we will need to replace all uses of FetchContent_Populate(<name>) with one of the alternatives.
We may need to maintain the current paths if the new forms require CMake > 3.18.
Fix CI short term
Long term fix
Apply similar long-term fixes to all the standalone repos which fetch flamegpu2 via fetch_content
The text was updated successfully, but these errors were encountered:
Sets policy CMP0169 to OLD to prevent dev warnings related to FetchContent_Populate(<name>).
This needs fixing propperly for longer term support, see #1223
Sets policy CMP0169 to OLD to prevent dev warnings related to FetchContent_Populate(<name>).
This needs fixing propperly for longer term support, see #1223
CMake 3.30 deprecates calling
FetchContent_Populate
with a single argument.preferring
FetchContent_MakeAvailable()
should be preffered orFetchContent_Populate
with atleast one extra argument must be used.We've previously used
FetchContent_Populate
as older versions ofFetchContent_MakeAvailable
did not provide functionality we require (i.e. fetching projects which are not CMake projects).See https://cmake.org/cmake/help/latest/policy/CMP0169.html
Unfortunately, this deprecation warning does not respect
CMAKE_WARN_DEPRECATED
, which combined with-Werror=dev
means that CI is reporting failures.Short term, we chould be able to set the policy to OLD for existing behaviour to continue functioning until the behaviour is removed.
Long term, we will need to replace all uses of
FetchContent_Populate(<name>)
with one of the alternatives.We may need to maintain the current paths if the new forms require CMake > 3.18.
The text was updated successfully, but these errors were encountered: