summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Swift/ForceResponseFile.cmake
blob: 880ff72c2a4149eddc065122494bf7b67e557a07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
if(POLICY CMP0157)
  cmake_policy(SET CMP0157 NEW)
endif()

if(NOT CMAKE_GENERATOR MATCHES "Ninja")
  message(SEND_ERROR "this test must use a Ninja generator, found ${CMAKE_GENERATOR} ")
endif()

set(CMAKE_NINJA_FORCE_RESPONSE_FILE TRUE)

enable_language(Swift)

add_library(L STATIC L.swift)