Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
rewritten FetchAllegro.cmake for testing, place in CMake/FetchAllegro.cmake
FetchContent_Declare(
allegro_content
GIT_REPOSITORY https://github.com/ericoporto/lib-allegro.git
GIT_TAG bce34ee5222e14e8ab199f693163195ed9800c71
GIT_SHALLOW yes
)
FetchContent_GetProperties(allegro_content)
if(NOT allegro_content_POPULATED)
FetchContent_Populate(allegro_content)
file(COPY Common/libsrc/allegro4/CMakeLists.txt DESTINATION ${allegro_content_SOURCE_DIR})
add_subdirectory(${allegro_content_SOURCE_DIR} ${allegro_content_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.