From 41152efc02a86b53c3ad26c16eafc9068e7805e2 Mon Sep 17 00:00:00 2001 From: ClausKlein Date: Wed, 26 Jul 2023 23:12:24 +0200 Subject: [PATCH] Update cxxopts version too link alias target cxxopts::cxxopts --- standalone/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/standalone/CMakeLists.txt b/standalone/CMakeLists.txt index d558c0e..a5cb1cc 100644 --- a/standalone/CMakeLists.txt +++ b/standalone/CMakeLists.txt @@ -12,7 +12,7 @@ include(../cmake/CPM.cmake) CPMAddPackage( GITHUB_REPOSITORY jarro2783/cxxopts - VERSION 3.0.0 + VERSION 3.1.1 OPTIONS "CXXOPTS_BUILD_EXAMPLES NO" "CXXOPTS_BUILD_TESTS NO" "CXXOPTS_ENABLE_INSTALL YES" ) @@ -30,4 +30,4 @@ add_executable(${PROJECT_NAME} ${sources}) set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD 17 OUTPUT_NAME "Greeter") -target_link_libraries(${PROJECT_NAME} Greeter::Greeter cxxopts) +target_link_libraries(${PROJECT_NAME} Greeter::Greeter cxxopts::cxxopts)