Change-Id: I1aca763869e107a996519cb74e025043407005f2 (cherry picked from commit f7865828cf4b7b3ab8987bf0fc3d45efad2f08fe)
8 lines
227 B
CMake
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()
|