diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2016-11-10 17:52:19 -0800 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2016-11-10 17:52:19 -0800 |
| commit | bb0fc030d5ea0c0d872b0446e43e28ae927d6885 (patch) | |
| tree | e2dabee284b46e6bb1f13e8741f744bd35421c04 /ports/tiff/add-component-options.patch | |
| parent | 7220f54e302ce4792868c4ff59b8146c54d2e88c (diff) | |
| download | vcpkg-bb0fc030d5ea0c0d872b0446e43e28ae927d6885.tar.gz vcpkg-bb0fc030d5ea0c0d872b0446e43e28ae927d6885.zip | |
[tiff] Disable non-essential components. Fixes #259.
Diffstat (limited to 'ports/tiff/add-component-options.patch')
| -rw-r--r-- | ports/tiff/add-component-options.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/ports/tiff/add-component-options.patch b/ports/tiff/add-component-options.patch new file mode 100644 index 000000000..513d37ad6 --- /dev/null +++ b/ports/tiff/add-component-options.patch @@ -0,0 +1,43 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 1ee6fd4..439e26a 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -122,6 +122,11 @@ set(EXTRA_DIST + nmake.opt + libtiff-4.pc.in) + ++option(BUILD_TOOLS "Build tool executables" ON) ++option(BUILD_DOCS "Build docs" ON) ++option(BUILD_CONTRIB "Build contributed executables" ON) ++option(BUILD_TESTS "Build tests" ON) ++ + # These are annoyingly verbose, produce false positives or don't work + # nicely with all supported compiler versions, so are disabled unless + # explicitly enabled. +@@ -719,12 +724,20 @@ endif() + # Process subdirectories + add_subdirectory(port) + add_subdirectory(libtiff) +-add_subdirectory(tools) +-add_subdirectory(test) +-add_subdirectory(contrib) +-add_subdirectory(build) +-add_subdirectory(man) +-add_subdirectory(html) ++if(BUILD_TOOLS) ++ add_subdirectory(tools) ++endif() ++if(BUILD_TESTS) ++ add_subdirectory(test) ++endif() ++if(BUILD_CONTRIB) ++ add_subdirectory(contrib) ++endif() ++if(BUILD_DOCS) ++ add_subdirectory(build) ++ add_subdirectory(man) ++ add_subdirectory(html) ++endif() + + #message(STATUS "EXTRA_DIST: ${EXTRA_DIST}") + |
