Update boost-cmake (#252)

* update boost-cmake

* run cmake-format
This commit is contained in:
Lars Melchior
2021-05-18 15:29:52 +02:00
committed by GitHub
parent 7644c3a40f
commit de5551e42c
3 changed files with 6 additions and 10 deletions

View File

@@ -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)

View File

@@ -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)

View File

@@ -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<std::string>());
options.add_options()("h,help", "Show help")(
"d,debug", "Enable debugging")("f,file", "File name", cxxopts::value<std::string>());
auto result = options.parse(argc, argv);