cmake/Tests/RunCMake/Swift/CompileCommands.cmake
2024-04-14 22:45:38 +02:00

10 lines
265 B
CMake

if(POLICY CMP0157)
cmake_policy(SET CMP0157 NEW)
endif()
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)