# usage: # FetchContent_MakeAvailable(cblib) # target_link_libraries(${PROJECT_NAME} PRIVATE cblib) if (NOT DEFINED CBLIB_GIT_TAG) message(FATAL_ERROR "CBLIB_GIT_TAG is not defined.\n see https://git.cobrapitz.de/cobrapitz/CBLib and grab a release tag.\n example: set(CBLIB_GIT_TAG v0.1.4)") endif() FetchContent_Declare( cblib GIT_REPOSITORY https://git.cobrapitz.de/cobrapitz/CBLib.git GIT_TAG ${CBLIB_GIT_TAG} ) include(${CMAKE_SOURCE_DIR}/cmake/Utils.cmake) print_git_tag(${CBLIB_GIT_TAG})