Skip to content

Instantly share code, notes, and snippets.

@ericoporto
Created June 22, 2020 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericoporto/6109075f59dcb589a0cb913cd7c40120 to your computer and use it in GitHub Desktop.
Save ericoporto/6109075f59dcb589a0cb913cd7c40120 to your computer and use it in GitHub Desktop.
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