mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
CMake: Work around two upstream CMake issues for Swift files
https://gitlab.kitware.com/cmake/cmake/-/issues/26174 https://gitlab.kitware.com/cmake/cmake/-/issues/26175
This commit is contained in:
parent
d1969851ce
commit
2fa6c445cb
Notes:
github-actions[bot]
2024-07-31 00:38:55 +00:00
Author: https://github.com/ADKaster
Commit: 2fa6c445cb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/821
2 changed files with 12 additions and 0 deletions
|
@ -17,3 +17,8 @@ include(${CMAKE_CURRENT_LIST_DIR}/InitializeSwift.cmake)
|
|||
include(${CMAKE_CURRENT_LIST_DIR}/GenerateSwiftHeader.cmake)
|
||||
|
||||
add_compile_options("SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xcc -std=c++23 -cxx-interoperability-mode=default>")
|
||||
|
||||
# FIXME: https://gitlab.kitware.com/cmake/cmake/-/issues/26174
|
||||
if (APPLE)
|
||||
set(CMAKE_Swift_COMPILER_TARGET "${CMAKE_SYSTEM_PROCESSOR}-apple-macosx${CMAKE_OSX_DEPLOYMENT_TARGET}")
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue