1
0
mirror of synced 2024-12-23 13:10:01 +01:00
modern-cmake/examples/extended-project/cmake/add_FetchContent_MakeAvailable.cmake

9 lines
242 B
CMake
Raw Normal View History

2019-08-07 05:06:55 +00:00
macro(FetchContent_MakeAvailable NAME)
FetchContent_GetProperties(${NAME})
if(NOT ${NAME}_POPULATED)
FetchContent_Populate(${NAME})
add_subdirectory(${${NAME}_SOURCE_DIR} ${${NAME}_BINARY_DIR})
endif()
endmacro()