aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTsukasa Sugiura <t.sugiura0204@gmail.com>2018-04-24 23:07:37 +0900
committerTsukasa Sugiura <t.sugiura0204@gmail.com>2018-04-24 23:09:55 +0900
commit27a295aaf25e512192c59197ef3e98b4276402b8 (patch)
tree01e51e2245b74f127e98ead915507409c9f52ce8
parent290907f9059bac92dd59d8bbceef6a3ef728a0ae (diff)
downloadvcpkg-27a295aaf25e512192c59197ef3e98b4276402b8.tar.gz
vcpkg-27a295aaf25e512192c59197ef3e98b4276402b8.zip
[realsense2] Disable Build Tools when Debug Configuration to Speed-Up Install
Disable build tools when debug configuration to speed-up vcpkg install.
-rw-r--r--ports/realsense2/portfile.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/ports/realsense2/portfile.cmake b/ports/realsense2/portfile.cmake
index ed9e88ea2..6a02259ba 100644
--- a/ports/realsense2/portfile.cmake
+++ b/ports/realsense2/portfile.cmake
@@ -16,7 +16,6 @@ set(BUILD_GRAPHICAL_EXAMPLES OFF)
if("tools" IN_LIST FEATURES)
set(BUILD_EXAMPLES ON)
set(BUILD_GRAPHICAL_EXAMPLES ON)
- set(BUILD_TOOLS ON)
endif()
vcpkg_configure_cmake(
@@ -32,6 +31,9 @@ vcpkg_configure_cmake(
-DBUILD_WITH_OPENMP=OFF
-DBUILD_WITH_STATIC_CRT=${BUILD_CRT_LINKAGE}
OPTIONS_DEBUG
+ # BUILD
+ -DBUILD_EXAMPLES=OFF
+ -DBUILD_GRAPHICAL_EXAMPLES=OFF
# CMAKE
"-DCMAKE_PDB_OUTPUT_DIRECTORY=${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg"
-DCMAKE_DEBUG_POSTFIX="_d"
@@ -44,7 +46,7 @@ vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
-if(BUILD_TOOLS)
+if(BUILD_EXAMPLES)
file(GLOB EXEFILES_RELEASE ${CURRENT_PACKAGES_DIR}/bin/*.exe)
file(GLOB EXEFILES_DEBUG ${CURRENT_PACKAGES_DIR}/debug/bin/*.exe)
file(COPY ${EXEFILES_RELEASE} DESTINATION ${CURRENT_PACKAGES_DIR}/tools/realsense2)