include(RepositoryPath.cmake) FetchContent_Declare( cxxopts GIT_REPOSITORY ${cxxopts_path} GIT_TAG master ) FetchContent_GetProperties(cxxopts) if(NOT cxxopts_POPULATED) FetchContent_Populate(cxxopts) add_subdirectory(${cxxopts_SOURCE_DIR} ${cxxopts_BINARY_DIR}) endif()