mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-17 06:37:43 -05:00
@@ -273,7 +273,8 @@ CPMAddPackage("gh:catchorg/Catch2@2.5.0")
|
|||||||
### [Boost (via boost-cmake)](https://github.com/Orphis/boost-cmake)
|
### [Boost (via boost-cmake)](https://github.com/Orphis/boost-cmake)
|
||||||
|
|
||||||
```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)
|
### [Yaml-cpp](https://github.com/jbeder/yaml-cpp)
|
||||||
|
|||||||
@@ -11,13 +11,8 @@ target_compile_features(CPMExampleBoost PRIVATE cxx_std_17)
|
|||||||
|
|
||||||
include(../../cmake/CPM.cmake)
|
include(../../cmake/CPM.cmake)
|
||||||
|
|
||||||
CPMFindPackage(
|
# boost-cmake currently doesn't tag versions, so we use the according boost version
|
||||||
NAME Boost
|
CPMAddPackage("gh:Orphis/boost-cmake#7f97a08b64bd5d2e53e932ddf80c40544cf45edf@1.71.0")
|
||||||
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"
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(Threads REQUIRED)
|
find_package(Threads REQUIRED)
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
cxxopts::Options options("MyProgram", "One line description of MyProgram");
|
cxxopts::Options options("MyProgram", "One line description of MyProgram");
|
||||||
options.add_options()("h,help", "Show help")("d,debug", "Enable debugging")(
|
options.add_options()("h,help", "Show help")(
|
||||||
"f,file", "File name", cxxopts::value<std::string>());
|
"d,debug", "Enable debugging")("f,file", "File name", cxxopts::value<std::string>());
|
||||||
|
|
||||||
auto result = options.parse(argc, argv);
|
auto result = options.parse(argc, argv);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user