cmake/Tests/RunCMake/Swift/NoWorkToDo.cmake

10 lines
298 B
CMake
Raw Normal View History

2024-04-14 22:45:38 +02:00
cmake_policy(SET CMP0157 NEW)
2023-05-23 16:38:00 +02:00
enable_language(Swift)
2024-04-14 22:45:38 +02:00
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/hello.swift "")
add_executable(hello1 ${CMAKE_CURRENT_BINARY_DIR}/hello.swift)
2023-05-23 16:38:00 +02:00
set_target_properties(hello1 PROPERTIES ENABLE_EXPORTS TRUE)
2024-04-14 22:45:38 +02:00
add_executable(hello2 ${CMAKE_CURRENT_BINARY_DIR}/hello.swift)