aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-03-27 17:25:38 -0700
committerRobert Schumacher <roschuma@microsoft.com>2017-03-27 17:26:26 -0700
commit2aff607cbf0e946773a1804d630655209439930c (patch)
tree602e18d850bceb853a3cc5f0d1809861015d8008
parent4990c31f7690131cea5fee7bcd2dea94a203606d (diff)
downloadvcpkg-2aff607cbf0e946773a1804d630655209439930c.tar.gz
vcpkg-2aff607cbf0e946773a1804d630655209439930c.zip
[pybind11] Disable building tests to remove pytest dependency.
-rw-r--r--ports/pybind11/portfile.cmake10
1 files changed, 1 insertions, 9 deletions
diff --git a/ports/pybind11/portfile.cmake b/ports/pybind11/portfile.cmake
index 892b260b2..933efbd19 100644
--- a/ports/pybind11/portfile.cmake
+++ b/ports/pybind11/portfile.cmake
@@ -9,22 +9,14 @@ vcpkg_download_distfile(ARCHIVE
)
vcpkg_extract_source_archive(${ARCHIVE})
-# link the MSVC runtime statically if set.
-if(VCPKG_CRT_LINKAGE STREQUAL dynamic)
- set(CRUNTIME /MD)
-else()
- set(CRUNTIME /MT)
-endif()
-
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
- OPTIONS
+ OPTIONS -DPYBIND11_TEST=OFF
)
vcpkg_install_cmake()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/)
-
# copy license
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/pybind11/copyright) \ No newline at end of file