diff options
| author | Alexander Neumann <30894796+Neumann-A@users.noreply.github.com> | 2020-09-09 21:10:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-09 12:10:56 -0700 |
| commit | aa042ad0fb35c01ebd27dc3655e11c7dd8df689b (patch) | |
| tree | 70cbbb9cde654c9feeeef44f9681365661b2c22b /ports/mp-units/cmake.patch | |
| parent | 468e82de6e0cfcdb5588e58d1322c07bcdffd9e6 (diff) | |
| download | vcpkg-aa042ad0fb35c01ebd27dc3655e11c7dd8df689b.tar.gz vcpkg-aa042ad0fb35c01ebd27dc3655e11c7dd8df689b.zip | |
[mp-units] add new port (#13416)
* [mp-units] add new port
* fix config
Diffstat (limited to 'ports/mp-units/cmake.patch')
| -rw-r--r-- | ports/mp-units/cmake.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/ports/mp-units/cmake.patch b/ports/mp-units/cmake.patch new file mode 100644 index 000000000..d5a57ce8b --- /dev/null +++ b/ports/mp-units/cmake.patch @@ -0,0 +1,35 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b18a30a96..d89248aa1 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -40,14 +40,24 @@ conan_init(cmake) + add_subdirectory(src) + + # set restrictive compilation warnings +-set_warnings(mp-units) ++# set_warnings(mp-units) + + # add unit tests +-enable_testing() +-add_subdirectory(test) ++option(BUILD_TESTING "Build tests" OFF) ++if(BUILD_TESTING) ++ set_warnings(mp-units) ++ enable_testing() ++ add_subdirectory(test) ++endif() + + # add usage example +-add_subdirectory(example) +- ++option(BUILD_EXAMPLES "Build usage examples" OFF) ++if(BUILD_EXAMPLES) ++ add_subdirectory(example) ++endif() + # generate project documentation +-add_subdirectory(docs) ++ ++option(BUILD_DOCS "Generate docs" OFF) ++if(BUILD_DOCS) ++ add_subdirectory(docs) ++endif() |
