diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-10-26 18:33:17 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-10-26 18:33:17 -0700 |
| commit | 286625e09eb4e2334062b65cf45fc1dee5fedb66 (patch) | |
| tree | 7111b543224604a2601d8255771702421a995fc5 | |
| parent | 0028cbc23fef82c3a36de771f990f0dfea407bb0 (diff) | |
| download | vcpkg-286625e09eb4e2334062b65cf45fc1dee5fedb66.tar.gz vcpkg-286625e09eb4e2334062b65cf45fc1dee5fedb66.zip | |
[rttr] Disable unit tests during build. Not bumping version because the output files are unaffected.
| -rw-r--r-- | ports/rttr/disable-unit-tests.patch | 14 | ||||
| -rw-r--r-- | ports/rttr/portfile.cmake | 4 |
2 files changed, 17 insertions, 1 deletions
diff --git a/ports/rttr/disable-unit-tests.patch b/ports/rttr/disable-unit-tests.patch new file mode 100644 index 000000000..b27f01661 --- /dev/null +++ b/ports/rttr/disable-unit-tests.patch @@ -0,0 +1,14 @@ +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index b9fd698..bcaebfe 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -31,7 +31,9 @@ + ############################################# + + add_subdirectory (rttr) ++if(UNIT_TESTS) + add_subdirectory (unit_tests) ++endif() + + if (${BUILD_BENCHMARKS}) + add_subdirectory (benchmarks) diff --git a/ports/rttr/portfile.cmake b/ports/rttr/portfile.cmake index b590b7873..f3b3eafb9 100644 --- a/ports/rttr/portfile.cmake +++ b/ports/rttr/portfile.cmake @@ -14,7 +14,9 @@ vcpkg_extract_source_archive(${ARCHIVE}) vcpkg_apply_patches( SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/rttr-0.9.5-src - PATCHES "${CMAKE_CURRENT_LIST_DIR}/fix-directory-output.patch" + PATCHES + "${CMAKE_CURRENT_LIST_DIR}/fix-directory-output.patch" + "${CMAKE_CURRENT_LIST_DIR}/disable-unit-tests.patch" ) vcpkg_configure_cmake( |
