aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/rttr/disable-unit-tests.patch14
-rw-r--r--ports/rttr/portfile.cmake4
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(