[cmake] Add a SwiftUtils.cmake file to contain little helper routines such as precondition.

This commit is contained in:
Michael Gottesman
2016-06-22 14:20:05 -07:00
parent cf0fc1ab9c
commit e12fff76fd

View File

@@ -0,0 +1,5 @@
function(precondition var)
if (NOT ${var})
message(FATAL_ERROR "Error! Variable ${var} is false or not set!")
endif()
endfunction()