1
0
mirror of synced 2024-06-04 19:58:02 +02:00
modern-cmake/examples/extended-project/cmake/add_FetchContent_MakeAvailable.cmake
2020-08-03 18:16:52 -04:00

8 lines
227 B
CMake

macro(FetchContent_MakeAvailable NAME)
FetchContent_GetProperties(${NAME})
if(NOT ${NAME}_POPULATED)
FetchContent_Populate(${NAME})
add_subdirectory(${${NAME}_SOURCE_DIR} ${${NAME}_BINARY_DIR})
endif()
endmacro()