Skip to content

Commit e12fff7

Browse files
committed
[cmake] Add a SwiftUtils.cmake file to contain little helper routines such as precondition.
1 parent cf0fc1a commit e12fff7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmake/modules/SwiftUtils.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
function(precondition var)
2+
if (NOT ${var})
3+
message(FATAL_ERROR "Error! Variable ${var} is false or not set!")
4+
endif()
5+
endfunction()

0 commit comments

Comments
 (0)