aboutsummaryrefslogtreecommitdiff
path: root/scripts/cmake
diff options
context:
space:
mode:
authorras0219 <533828+ras0219@users.noreply.github.com>2020-08-31 22:35:52 -0700
committerGitHub <noreply@github.com>2020-08-31 22:35:52 -0700
commitcdd4a988fdf867d3c6dba43fd3924c5188de18bd (patch)
tree18ae1aa0658ead51934b8c39b77878476a9a032f /scripts/cmake
parent2045a0e1ddaa36edc90554d88e4240a3342f3616 (diff)
downloadvcpkg-cdd4a988fdf867d3c6dba43fd3924c5188de18bd.tar.gz
vcpkg-cdd4a988fdf867d3c6dba43fd3924c5188de18bd.zip
[vcpkg_configure_cmake] Pass CMAKE_DISABLE_SOURCE_CHANGES to all ports by default (#12846)
* [vcpkg] Pass CMAKE_DISABLE_SOURCE_CHANGES to all ports by default * [docs] Regenerate Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
Diffstat (limited to 'scripts/cmake')
-rw-r--r--scripts/cmake/vcpkg_configure_cmake.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/cmake/vcpkg_configure_cmake.cmake b/scripts/cmake/vcpkg_configure_cmake.cmake
index ce534b7aa..373977dd5 100644
--- a/scripts/cmake/vcpkg_configure_cmake.cmake
+++ b/scripts/cmake/vcpkg_configure_cmake.cmake
@@ -29,6 +29,8 @@
## Disables running the CMake configure step in parallel.
## This is needed for libraries which write back into their source directory during configure.
##
+## This also disables CMAKE_DISABLE_SOURCE_CHANGES.
+##
## ### NO_CHARSET_FLAG
## Disables passing `utf-8` as the default character set to `CMAKE_C_FLAGS` and `CMAKE_CXX_FLAGS`.
##
@@ -266,6 +268,7 @@ function(vcpkg_configure_cmake)
-DCMAKE_INSTALL_PREFIX=${CURRENT_PACKAGES_DIR}/debug)
if(NINJA_HOST AND CMAKE_HOST_WIN32 AND NOT _csc_DISABLE_PARALLEL_CONFIGURE)
+ list(APPEND _csc_OPTIONS "-DCMAKE_DISABLE_SOURCE_CHANGES=ON")
vcpkg_find_acquire_program(NINJA)
get_filename_component(NINJA_PATH ${NINJA} DIRECTORY)