From de5551e42ce2976e873b8d5644f63c027ef13f37 Mon Sep 17 00:00:00 2001 From: Lars Melchior Date: Tue, 18 May 2021 15:29:52 +0200 Subject: [PATCH] Update boost-cmake (#252) * update boost-cmake * run cmake-format --- README.md | 3 ++- examples/boost/CMakeLists.txt | 9 ++------- examples/cxxopts/main.cpp | 4 ++-- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index e3a5ffb..fd7dc9c 100644 --- a/README.md +++ b/README.md @@ -273,7 +273,8 @@ CPMAddPackage("gh:catchorg/Catch2@2.5.0") ### [Boost (via boost-cmake)](https://github.com/Orphis/boost-cmake) ```CMake -CPMAddPackage("gh:Orphis/boost-cmake@1.67.0") +# boost-cmake currently doesn't tag versions, so we use the according boost version +CPMAddPackage("gh:Orphis/boost-cmake#7f97a08b64bd5d2e53e932ddf80c40544cf45edf@1.71.0") ``` ### [Yaml-cpp](https://github.com/jbeder/yaml-cpp) diff --git a/examples/boost/CMakeLists.txt b/examples/boost/CMakeLists.txt index 9bb2f22..163a371 100644 --- a/examples/boost/CMakeLists.txt +++ b/examples/boost/CMakeLists.txt @@ -11,13 +11,8 @@ target_compile_features(CPMExampleBoost PRIVATE cxx_std_17) include(../../cmake/CPM.cmake) -CPMFindPackage( - NAME Boost - GITHUB_REPOSITORY Orphis/boost-cmake - VERSION 1.67.0 - # setting FIND_PACKAGE_ARGUMENTS allow usage with `CPM_USE_LOCAL_PACKAGES` - FIND_PACKAGE_ARGUMENTS "COMPONENTS system" -) +# boost-cmake currently doesn't tag versions, so we use the according boost version +CPMAddPackage("gh:Orphis/boost-cmake#7f97a08b64bd5d2e53e932ddf80c40544cf45edf@1.71.0") find_package(Threads REQUIRED) diff --git a/examples/cxxopts/main.cpp b/examples/cxxopts/main.cpp index 4f60153..c1bf122 100644 --- a/examples/cxxopts/main.cpp +++ b/examples/cxxopts/main.cpp @@ -3,8 +3,8 @@ int main(int argc, char** argv) { cxxopts::Options options("MyProgram", "One line description of MyProgram"); - options.add_options()("h,help", "Show help")("d,debug", "Enable debugging")( - "f,file", "File name", cxxopts::value()); + options.add_options()("h,help", "Show help")( + "d,debug", "Enable debugging")("f,file", "File name", cxxopts::value()); auto result = options.parse(argc, argv);