1
0
mirror of synced 2024-06-02 10:48:10 +02:00
modern-cmake/examples/extended-project/cmake/add_FetchContent_MakeAvailable.cmake

8 lines
227 B
CMake
Raw Normal View History

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