Files
cmake/Tests/RunCMake/Swift/CompileCommands.cmake
Evan Wilde 118ab41984 Swift: Build with a package name by default
Add policy CMP0216 to enable use of the `PROJECT_NAME` as the default
package name for Swift.

Issue: #26886
2026-04-28 15:30:44 -04:00

15 lines
355 B
CMake

if(POLICY CMP0157)
cmake_policy(SET CMP0157 NEW)
endif()
if(POLICY CMP0195)
cmake_policy(SET CMP0195 NEW)
endif()
cmake_policy(SET CMP0216 NEW)
set(CMAKE_Swift_COMPILATION_MODE "singlefile")
enable_language(Swift)
add_library(CompileCommandLib STATIC E.swift L.swift)
set_target_properties(CompileCommandLib PROPERTIES EXPORT_COMPILE_COMMANDS YES)