After seeing the deprecation warnings for FetchContent_Populate
I replaced it with FetchContent_MakeAvailable
but now my project is failing.
I use to do this (in a nutshell)
# ...
FetchContent_Declare(re-logging ...)
FetchContent_Populate(re-logging)
include("${re-logging_ROOT_DIR}/re-logging.cmake")
The issue I am facing with replacing FetchContent_Populate
with FetchContent_MakeAvailable
is that FetchContent_MakeAvailable
seems to automatically “execute” CMakeLists.txt
included in re-logging but I don’t want this to happen. FetchContent_Populate
did not do that.
I want to load re-logging.cmake
instead.
Is there a way to do this?