mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Add policy CMP0216 to enable use of the `PROJECT_NAME` as the default package name for Swift. Issue: #26886
15 lines
355 B
CMake
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)
|