mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
[rttr] Don't build benchmarks
This commit is contained in:
parent
66107362b1
commit
4cf611c2e6
@ -1,3 +1,3 @@
|
||||
Source: rttr
|
||||
Version: 0.9.5-2
|
||||
Version: 0.9.5-3
|
||||
Description: an easy and intuitive way to use reflection in C++
|
||||
|
@ -13,40 +13,23 @@ vcpkg_from_github(
|
||||
REF v0.9.5
|
||||
SHA512 b451f24fd4bdc4b7d9ecabdb6fd261744852e68357ec36573109354a25f2bf494908b9d4174602b59dd5005c42ba8edc3b35ec1d1386384db421805ac9994608
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES
|
||||
"${CMAKE_CURRENT_LIST_DIR}/fix-directory-output.patch"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/disable-unit-tests.patch"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/remove-owner-read-perms.patch"
|
||||
fix-directory-output.patch
|
||||
disable-unit-tests.patch
|
||||
remove-owner-read-perms.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DBUILD_BENCHMARKS=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
|
||||
|
||||
file(GLOB REL_EXES ${CURRENT_PACKAGES_DIR}/bin/*.exe)
|
||||
file(GLOB DBG_EXES ${CURRENT_PACKAGES_DIR}/debug/bin/*.exe)
|
||||
if(REL_EXES)
|
||||
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/rttr)
|
||||
file(COPY ${REL_EXES} DESTINATION ${CURRENT_PACKAGES_DIR}/tools/rttr)
|
||||
endif()
|
||||
|
||||
if(REL_EXES)
|
||||
file(REMOVE ${REL_EXES})
|
||||
endif(REL_EXES)
|
||||
|
||||
if(DBG_EXES)
|
||||
file(REMOVE ${DBG_EXES})
|
||||
endif(DBG_EXES)
|
||||
|
||||
#Handle copyright
|
||||
file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/rttr)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/rttr/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/rttr/copyright)
|
||||
@ -58,5 +41,3 @@ file(REMOVE_RECURSE
|
||||
${CURRENT_PACKAGES_DIR}/LICENSE.txt
|
||||
${CURRENT_PACKAGES_DIR}/README.md
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user