George Rokos | 2467df6 | 2017-01-25 21:27:24 +0000 | [diff] [blame] | 1 | # |
| 2 | #//===----------------------------------------------------------------------===// |
| 3 | #// |
| 4 | #// The LLVM Compiler Infrastructure |
| 5 | #// |
| 6 | #// This file is dual licensed under the MIT and the University of Illinois Open |
| 7 | #// Source Licenses. See LICENSE.txt for details. |
| 8 | #// |
| 9 | #//===----------------------------------------------------------------------===// |
| 10 | # |
| 11 | |
| 12 | # void libomptarget_say(string message_to_user); |
| 13 | # - prints out message_to_user |
| 14 | macro(libomptarget_say message_to_user) |
| 15 | message(STATUS "LIBOMPTARGET: ${message_to_user}") |
| 16 | endmacro() |
| 17 | |
| 18 | # void libomptarget_warning_say(string message_to_user); |
| 19 | # - prints out message_to_user with a warning |
| 20 | macro(libomptarget_warning_say message_to_user) |
| 21 | message(WARNING "LIBOMPTARGET: ${message_to_user}") |
| 22 | endmacro() |
| 23 | |
| 24 | # void libomptarget_error_say(string message_to_user); |
| 25 | # - prints out message_to_user with an error and exits cmake |
| 26 | macro(libomptarget_error_say message_to_user) |
| 27 | message(FATAL_ERROR "LIBOMPTARGET: ${message_to_user}") |
| 28 | endmacro() |