Skip to content

Commit 453b997

Browse files
authored
Runtimes: adjust the specified version number (#79196)
Use a full 3-component version specifier as that is required for some support on Windows. The version number components will be used to generate the Win32 SxS manifest for embedding within the DLL.
2 parents 3ce2449 + dca10cf commit 453b997

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Runtimes/Core/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ set(SwiftCore_CMAKE_MODULES_DIR "${CMAKE_SOURCE_DIR}/cmake/modules")
3939
list(APPEND CMAKE_MODULE_PATH ${SwiftCore_CMAKE_MODULES_DIR})
4040

4141
include(CMakeWorkarounds)
42-
project(SwiftCore LANGUAGES C CXX Swift VERSION 6.1)
42+
# NOTE: always use the 3-component style as the expansion as
43+
# `${PROJECT_VERSION}` will not extend this to the complete form and this can
44+
# change the behaviour for comparison with non-SemVer compliant parsing.
45+
project(SwiftCore LANGUAGES C CXX Swift VERSION 6.1.0)
4346

4447
# The Swift standard library is not intended for use as a sub-library as part of
4548
# another project. It is tightly coupled with the compiler version.

0 commit comments

Comments
 (0)