BambuStudio/mcut/cmake/add_FetchContent_MakeAvaila...

8 lines
227 B
CMake
Raw Normal View History

2024-12-11 08:28:03 +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()