mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[cmake] Add a SwiftUtils.cmake file to contain little helper routines such as precondition.
This commit is contained in:
5
cmake/modules/SwiftUtils.cmake
Normal file
5
cmake/modules/SwiftUtils.cmake
Normal file
@@ -0,0 +1,5 @@
|
||||
function(precondition var)
|
||||
if (NOT ${var})
|
||||
message(FATAL_ERROR "Error! Variable ${var} is false or not set!")
|
||||
endif()
|
||||
endfunction()
|
||||
Reference in New Issue
Block a user