Update upstream source from tag 'upstream/3.27.3'

Update to upstream version '3.27.3'
with Debian dir ed9cc1f441
ci/unstable
Timo Röhling 1 year ago
commit a3a9ffc058

@ -284,3 +284,10 @@ Changes made since CMake 3.27.0 include the following.
using ``version=8.1`` in the :variable:`CMAKE_GENERATOR_PLATFORM` variable using ``version=8.1`` in the :variable:`CMAKE_GENERATOR_PLATFORM` variable
to select the Windows 8.1 SDK. In CMake 3.27.[0-1] the ``version=`` field to select the Windows 8.1 SDK. In CMake 3.27.[0-1] the ``version=`` field
was limited to selecting Windows 10 SDKs. was limited to selecting Windows 10 SDKs.
3.27.3
------
* This version made no changes to documented features or interfaces.
Some implementation updates were made to support ecosystem changes
and/or fix regressions.

@ -229,7 +229,7 @@ if(NOT CMAKE_RANLIB)
set(CMAKE_RANLIB : CACHE INTERNAL "noop for ranlib") set(CMAKE_RANLIB : CACHE INTERNAL "noop for ranlib")
endif() endif()
if(NOT CMAKE_TAPI) if(APPLE AND "TAPI" IN_LIST _CMAKE_TOOL_VARS AND NOT CMAKE_TAPI)
# try to pick-up from Apple toolchain # try to pick-up from Apple toolchain
execute_process(COMMAND xcrun --find tapi execute_process(COMMAND xcrun --find tapi
OUTPUT_VARIABLE _xcrun_out OUTPUT_VARIABLE _xcrun_out

@ -48,7 +48,10 @@ if("x${CMAKE_C_COMPILER_FRONTEND_VARIANT}" STREQUAL "xGNU")
set(CMAKE_C17_EXTENSION_COMPILE_OPTION "-std=gnu17") set(CMAKE_C17_EXTENSION_COMPILE_OPTION "-std=gnu17")
endif() endif()
if(CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 9.0) if(CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 18.0)
set(CMAKE_C23_STANDARD_COMPILE_OPTION "-std=c23")
set(CMAKE_C23_EXTENSION_COMPILE_OPTION "-std=gnu23")
elseif(CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 9.0)
set(CMAKE_C23_STANDARD_COMPILE_OPTION "-std=c2x") set(CMAKE_C23_STANDARD_COMPILE_OPTION "-std=c2x")
set(CMAKE_C23_EXTENSION_COMPILE_OPTION "-std=gnu2x") set(CMAKE_C23_EXTENSION_COMPILE_OPTION "-std=gnu2x")
endif() endif()

@ -389,10 +389,14 @@ if(APPLE)
# get xcode version # get xcode version
execute_process( execute_process(
COMMAND xcodebuild -version COMMAND xcodebuild -version
OUTPUT_VARIABLE _xcode_version OUTPUT_VARIABLE _FindJNI_XCODEBUILD_VERSION
) )
string(REGEX REPLACE "Xcode ([0-9]+(\\.[0-9]+)*)" "\\1" _FindJNI_XCODE_VERSION ${_xcode_version}) if(_FindJNI_XCODEBUILD_VERSION MATCHES "Xcode ([0-9]+(\\.[0-9]+)*)")
unset(_xcode_version) set(_FindJNI_XCODE_VERSION "${CMAKE_MATCH_1}")
else()
set(_FindJNI_XCODE_VERSION "")
endif()
unset(_FindJNI_XCODEBUILD_VERSION)
endif() endif()
if(_FindJNI_XCODE_VERSION VERSION_GREATER 12.1) if(_FindJNI_XCODE_VERSION VERSION_GREATER 12.1)

@ -28,7 +28,7 @@ if (NOT DEFINED _${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR)
message (FATAL_ERROR "FindPython: INTERNAL ERROR") message (FATAL_ERROR "FindPython: INTERNAL ERROR")
endif() endif()
if (_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR EQUAL "3") if (_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR EQUAL "3")
set(_${_PYTHON_PREFIX}_VERSIONS 3.12 3.11 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0) set(_${_PYTHON_PREFIX}_VERSIONS 3.13 3.12 3.11 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0)
elseif (_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR EQUAL "2") elseif (_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR EQUAL "2")
set(_${_PYTHON_PREFIX}_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0) set(_${_PYTHON_PREFIX}_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0)
else() else()

@ -67,7 +67,7 @@ unset(_Python_NAMES)
set(_PYTHON1_VERSIONS 1.6 1.5) set(_PYTHON1_VERSIONS 1.6 1.5)
set(_PYTHON2_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0) set(_PYTHON2_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0)
set(_PYTHON3_VERSIONS 3.12 3.11 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0) set(_PYTHON3_VERSIONS 3.13 3.12 3.11 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0)
if(PythonInterp_FIND_VERSION) if(PythonInterp_FIND_VERSION)
if(PythonInterp_FIND_VERSION_COUNT GREATER 1) if(PythonInterp_FIND_VERSION_COUNT GREATER 1)

@ -92,7 +92,7 @@ set(CMAKE_FIND_FRAMEWORK LAST)
set(_PYTHON1_VERSIONS 1.6 1.5) set(_PYTHON1_VERSIONS 1.6 1.5)
set(_PYTHON2_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0) set(_PYTHON2_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0)
set(_PYTHON3_VERSIONS 3.12 3.11 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0) set(_PYTHON3_VERSIONS 3.13 3.12 3.11 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0)
if(PythonLibs_FIND_VERSION) if(PythonLibs_FIND_VERSION)
if(PythonLibs_FIND_VERSION_COUNT GREATER 1) if(PythonLibs_FIND_VERSION_COUNT GREATER 1)

@ -1,7 +1,7 @@
# CMake version number components. # CMake version number components.
set(CMake_VERSION_MAJOR 3) set(CMake_VERSION_MAJOR 3)
set(CMake_VERSION_MINOR 27) set(CMake_VERSION_MINOR 27)
set(CMake_VERSION_PATCH 2) set(CMake_VERSION_PATCH 3)
#set(CMake_VERSION_RC 0) #set(CMake_VERSION_RC 0)
set(CMake_VERSION_IS_DIRTY 0) set(CMake_VERSION_IS_DIRTY 0)
@ -21,7 +21,7 @@ endif()
if(NOT CMake_VERSION_NO_GIT) if(NOT CMake_VERSION_NO_GIT)
# If this source was exported by 'git archive', use its commit info. # If this source was exported by 'git archive', use its commit info.
set(git_info [==[f3d9a82110 CMake 3.27.2]==]) set(git_info [==[a69c783749 CMake 3.27.3]==])
# Otherwise, try to identify the current development source version. # Otherwise, try to identify the current development source version.
if(NOT git_info MATCHES "^([0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]?[0-9a-f]?)[0-9a-f]* " if(NOT git_info MATCHES "^([0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]?[0-9a-f]?)[0-9a-f]* "

@ -415,7 +415,9 @@ void cmGhsMultiTargetGenerator::WriteCustomCommandsHelper(
#endif #endif
// Echo the custom command's comment text. // Echo the custom command's comment text.
if (cm::optional<std::string> comment = ccg.GetComment()) { if (cm::optional<std::string> comment = ccg.GetComment()) {
std::string echocmd = cmStrCat("echo ", *comment); std::string escapedComment = this->LocalGenerator->EscapeForShell(
*comment, ccg.GetCC().GetEscapeAllowMakeVars());
std::string echocmd = cmStrCat("echo ", escapedComment);
cmdLines.push_back(std::move(echocmd)); cmdLines.push_back(std::move(echocmd));
} }

@ -2987,7 +2987,7 @@ void cmLocalGenerator::WriteUnitySourceInclude(
unity_file << *beforeInclude << "\n"; unity_file << *beforeInclude << "\n";
} }
unity_file << "// NOLINTNEXTLINE(bugprone-suspicious-include)\n"; unity_file << "/* NOLINTNEXTLINE(bugprone-suspicious-include) */\n";
unity_file << "#include \"" << sf_full_path << "\"\n"; unity_file << "#include \"" << sf_full_path << "\"\n";
if (afterInclude) { if (afterInclude) {

@ -180,13 +180,13 @@ int runTest(int argc, char* argv[])
auto debuggerResponse = debuggerResponseStream.str(); auto debuggerResponse = debuggerResponseStream.str();
std::vector<std::string> expectedResponses = { std::vector<std::string> expectedResponses = {
R"("event" : "initialized".*"type" : "event")", R"("event" *: *"initialized".*"type" *: *"event")",
R"("command" : "launch".*"success" : true.*"type" : "response")", R"("command" *: *"launch".*"success" *: *true.*"type" *: *"response")",
R"("command" : "configurationDone".*"success" : true.*"type" : "response")", R"("command" *: *"configurationDone".*"success" *: *true.*"type" *: *"response")",
R"("reason" : "started".*"threadId" : 1.*"event" : "thread".*"type" : "event")", R"("reason" *: *"started".*"threadId" *: *1.*"event" *: *"thread".*"type" *: *"event")",
R"("reason" : "exited".*"threadId" : 1.*"event" : "thread".*"type" : "event")", R"("reason" *: *"exited".*"threadId" *: *1.*"event" *: *"thread".*"type" *: *"event")",
R"("exitCode" : 0.*"event" : "exited".*"type" : "event")", R"("exitCode" *: *0.*"event" *: *"exited".*"type" *: *"event")",
R"("command" : "disconnect".*"success" : true.*"type" : "response")" R"("command" *: *"disconnect".*"success" *: *true.*"type" *: *"response")"
}; };
for (auto& regexString : expectedResponses) { for (auto& regexString : expectedResponses) {

@ -10,15 +10,15 @@ if (NOT is_framework)
message(SEND_ERROR "foo-build::foo: FRAMEWORK not set.") message(SEND_ERROR "foo-build::foo: FRAMEWORK not set.")
endif() endif()
get_property(enable_exports TARGET foo-install::foo PROPERTY ENABLE_EXPORTS) get_property(enable_exports TARGET foo-install::foo PROPERTY ENABLE_EXPORTS)
if (CAMKE_TAPI AND NOT enable_exports) if (CMAKE_TAPI AND NOT enable_exports)
message(SEND_ERROR "foo-install::foo: ENABLE_EXPORTS not set.") message(SEND_ERROR "foo-install::foo: ENABLE_EXPORTS not set.")
endif() endif()
get_property(implib TARGET foo-install::foo PROPERTY IMPORTED_IMPLIB_RELEASE) get_property(implib TARGET foo-install::foo PROPERTY IMPORTED_IMPLIB_RELEASE)
if (CAMKE_TAPI AND NOT implib) if (CMAKE_TAPI AND NOT implib)
message(SEND_ERROR "foo-install::foo: IMPORTED_IMPLIB_RELEASE not set.") message(SEND_ERROR "foo-install::foo: IMPORTED_IMPLIB_RELEASE not set.")
endif() endif()
if (CAMKE_TAPI AND NOT implib MATCHES "foo.framework/Versions/A/foo.tbd$") if (CMAKE_TAPI AND NOT implib MATCHES "foo.framework/Versions/A/foo.tbd$")
message(SEND_ERROR "foo-install::foo: ${implib}: wrong value for IMPORTED_IMPLIB_RELEASE.") message(SEND_ERROR "foo-install::foo: ${implib}: wrong value for IMPORTED_IMPLIB_RELEASE.")
endif() endif()
@ -41,15 +41,15 @@ if (NOT is_framework)
message(SEND_ERROR "foo-build::foo: FRAMEWORK not set.") message(SEND_ERROR "foo-build::foo: FRAMEWORK not set.")
endif() endif()
get_property(enable_exports TARGET foo-build::foo PROPERTY ENABLE_EXPORTS) get_property(enable_exports TARGET foo-build::foo PROPERTY ENABLE_EXPORTS)
if (CAMKE_TAPI AND NOT enable_exports) if (CMAKE_TAPI AND NOT enable_exports)
message(SEND_ERROR "foo-build::foo: ENABLE_EXPORTS not set.") message(SEND_ERROR "foo-build::foo: ENABLE_EXPORTS not set.")
endif() endif()
get_property(implib TARGET foo-build::foo PROPERTY IMPORTED_IMPLIB_RELEASE) get_property(implib TARGET foo-build::foo PROPERTY IMPORTED_IMPLIB_RELEASE)
if (CAMKE_TAPI AND NOT implib) if (CMAKE_TAPI AND NOT implib)
message(SEND_ERROR "foo-build::foo: IMPORTED_IMPLIB_RELEASE not set.") message(SEND_ERROR "foo-build::foo: IMPORTED_IMPLIB_RELEASE not set.")
endif() endif()
if (CAMKE_TAPI AND NOT implib STREQUAL "${foo_BUILD}/foo.framework/Versions/A/foo.tbd") if (CMAKE_TAPI AND NOT implib STREQUAL "${foo_BUILD}/foo.framework/Versions/A/foo.tbd")
message(SEND_ERROR "foo-build::foo: ${implib}: wrong value for IMPORTED_IMPLIB_RELEASE.") message(SEND_ERROR "foo-build::foo: ${implib}: wrong value for IMPORTED_IMPLIB_RELEASE.")
endif() endif()

@ -24,13 +24,6 @@ CMake_GUI_DISTRIBUTE_WITH_Qt_LGPL:STRING=3
CMAKE_PREFIX_PATH:STRING=/opt/qt CMAKE_PREFIX_PATH:STRING=/opt/qt
CMake_QT_STATIC_QXcbIntegrationPlugin_LIBRARIES:STRING=/opt/qt/plugins/platforms/libqxcb.a;/opt/qt/lib/libQt5XcbQpa.a;/opt/qt/lib/libQt5ServiceSupport.a;/opt/qt/lib/libQt5EdidSupport.a;/opt/qt/lib/libQt5EventDispatcherSupport.a;/opt/qt/lib/libQt5FontDatabaseSupport.a;/opt/qt/lib/libQt5ThemeSupport.a;/opt/qt/lib/libxcb-static.a;-lxcb;-lfontconfig;-lfreetype CMake_QT_STATIC_QXcbIntegrationPlugin_LIBRARIES:STRING=/opt/qt/plugins/platforms/libqxcb.a;/opt/qt/lib/libQt5XcbQpa.a;/opt/qt/lib/libQt5ServiceSupport.a;/opt/qt/lib/libQt5EdidSupport.a;/opt/qt/lib/libQt5EventDispatcherSupport.a;/opt/qt/lib/libQt5FontDatabaseSupport.a;/opt/qt/lib/libQt5ThemeSupport.a;/opt/qt/lib/libxcb-static.a;-lxcb;-lfontconfig;-lfreetype
# Build documentation.
SPHINX_EXECUTABLE:FILEPATH=/usr/local/bin/sphinx-build
SPHINX_HTML:BOOL=ON
SPHINX_MAN:BOOL=ON
SPHINX_QTHELP:BOOL=ON
QHELPGENERATOR_EXECUTABLE:PATH=/opt/qt/bin/qhelpgenerator
# We bootstrap as part of the build so skip its test. # We bootstrap as part of the build so skip its test.
CMake_TEST_BOOTSTRAP:BOOL=FALSE CMake_TEST_BOOTSTRAP:BOOL=FALSE

@ -24,13 +24,6 @@ CMake_GUI_DISTRIBUTE_WITH_Qt_LGPL:STRING=3
CMAKE_PREFIX_PATH:STRING=/opt/qt CMAKE_PREFIX_PATH:STRING=/opt/qt
CMake_QT_STATIC_QXcbIntegrationPlugin_LIBRARIES:STRING=/opt/qt/plugins/platforms/libqxcb.a;/opt/qt/lib/libQt5XcbQpa.a;/opt/qt/lib/libQt5ServiceSupport.a;/opt/qt/lib/libQt5EdidSupport.a;/opt/qt/lib/libQt5EventDispatcherSupport.a;/opt/qt/lib/libQt5FontDatabaseSupport.a;/opt/qt/lib/libQt5ThemeSupport.a;/opt/qt/lib/libxcb-static.a;-lxcb;-lfontconfig;-lfreetype CMake_QT_STATIC_QXcbIntegrationPlugin_LIBRARIES:STRING=/opt/qt/plugins/platforms/libqxcb.a;/opt/qt/lib/libQt5XcbQpa.a;/opt/qt/lib/libQt5ServiceSupport.a;/opt/qt/lib/libQt5EdidSupport.a;/opt/qt/lib/libQt5EventDispatcherSupport.a;/opt/qt/lib/libQt5FontDatabaseSupport.a;/opt/qt/lib/libQt5ThemeSupport.a;/opt/qt/lib/libxcb-static.a;-lxcb;-lfontconfig;-lfreetype
# Build documentation.
SPHINX_EXECUTABLE:FILEPATH=/opt/rh/rh-python36/root/usr/bin/sphinx-build
SPHINX_HTML:BOOL=ON
SPHINX_MAN:BOOL=ON
SPHINX_QTHELP:BOOL=ON
QHELPGENERATOR_EXECUTABLE:PATH=/opt/qt/bin/qhelpgenerator
# We bootstrap as part of the build so skip its test. # We bootstrap as part of the build so skip its test.
CMake_TEST_BOOTSTRAP:BOOL=FALSE CMake_TEST_BOOTSTRAP:BOOL=FALSE

Loading…
Cancel
Save