include(FetchContent) FetchContent_Declare( spdlog GIT_REPOSITORY https://github.com/gabime/spdlog.git GIT_TAG v1.8.1 GIT_SHALLOW TRUE ) FetchContent_MakeAvailable(spdlog) #add_definitions(-SPDLOG_FMT_EXTERNAL)