File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -378,7 +378,7 @@ macro(configure_sdk_unix name architectures)
378
378
message (WARNING "CMAKE_SYSTEM_VERSION will not match target" )
379
379
endif ()
380
380
381
- string (REPLACE "[-].*" "" freebsd_system_version ${CMAKE_SYSTEM_VERSION} )
381
+ string (REGEX REPLACE "[-].*" "" freebsd_system_version ${CMAKE_SYSTEM_VERSION} )
382
382
message (STATUS "FreeBSD Version: ${freebsd_system_version} " )
383
383
384
384
set (SWIFT_SDK_FREEBSD_ARCH_x86_64_TRIPLE "x86_64-unknown-freebsd${freebsd_system_version} " )
@@ -387,7 +387,7 @@ macro(configure_sdk_unix name architectures)
387
387
message (FATAL_ERROR "unsupported arch for OpenBSD: ${arch} " )
388
388
endif ()
389
389
390
- string ( REPLACE "[-].*" "" openbsd_system_version ${CMAKE_SYSTEM_VERSION} )
390
+ set ( openbsd_system_version ${CMAKE_SYSTEM_VERSION} )
391
391
message (STATUS "OpenBSD Version: ${openbsd_system_version} " )
392
392
393
393
set (SWIFT_SDK_OPENBSD_ARCH_amd64_TRIPLE "amd64-unknown-openbsd${openbsd_system_version} " )
You can’t perform that action at this time.
0 commit comments