mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 19:32:46 +08:00
[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>
This commit is contained in:
parent
2045a0e1dd
commit
cdd4a988fd
@ -29,6 +29,8 @@ This should be specified unless the port is known to not work under Ninja.
|
|||||||
Disables running the CMake configure step in parallel.
|
Disables running the CMake configure step in parallel.
|
||||||
This is needed for libraries which write back into their source directory during configure.
|
This is needed for libraries which write back into their source directory during configure.
|
||||||
|
|
||||||
|
This also disables CMAKE_DISABLE_SOURCE_CHANGES.
|
||||||
|
|
||||||
### NO_CHARSET_FLAG
|
### NO_CHARSET_FLAG
|
||||||
Disables passing `utf-8` as the default character set to `CMAKE_C_FLAGS` and `CMAKE_CXX_FLAGS`.
|
Disables passing `utf-8` as the default character set to `CMAKE_C_FLAGS` and `CMAKE_CXX_FLAGS`.
|
||||||
|
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
## Disables running the CMake configure step in parallel.
|
## Disables running the CMake configure step in parallel.
|
||||||
## This is needed for libraries which write back into their source directory during configure.
|
## This is needed for libraries which write back into their source directory during configure.
|
||||||
##
|
##
|
||||||
|
## This also disables CMAKE_DISABLE_SOURCE_CHANGES.
|
||||||
|
##
|
||||||
## ### NO_CHARSET_FLAG
|
## ### NO_CHARSET_FLAG
|
||||||
## Disables passing `utf-8` as the default character set to `CMAKE_C_FLAGS` and `CMAKE_CXX_FLAGS`.
|
## 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)
|
-DCMAKE_INSTALL_PREFIX=${CURRENT_PACKAGES_DIR}/debug)
|
||||||
|
|
||||||
if(NINJA_HOST AND CMAKE_HOST_WIN32 AND NOT _csc_DISABLE_PARALLEL_CONFIGURE)
|
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)
|
vcpkg_find_acquire_program(NINJA)
|
||||||
get_filename_component(NINJA_PATH ${NINJA} DIRECTORY)
|
get_filename_component(NINJA_PATH ${NINJA} DIRECTORY)
|
||||||
|
Loading…
Reference in New Issue
Block a user