mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 03:49:06 +08:00
[rttr] Disable unit tests during build. Not bumping version because the output files are unaffected.
This commit is contained in:
parent
0028cbc23f
commit
286625e09e
14
ports/rttr/disable-unit-tests.patch
Normal file
14
ports/rttr/disable-unit-tests.patch
Normal file
@ -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)
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user