Created
June 22, 2020 21:39
-
-
Save ericoporto/6109075f59dcb589a0cb913cd7c40120 to your computer and use it in GitHub Desktop.
rewritten FetchAllegro.cmake for testing, place in CMake/FetchAllegro.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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