comparison interps/cfunge/cfunge-src/cmake/modules/CfungeRequireInclude.cmake @ 996:859f9b4339e6

<Gregor> tar xf egobot.tar.xz
author HackBot
date Sun, 09 Dec 2012 19:30:08 +0000
parents
children
comparison
equal deleted inserted replaced
995:6883f5911eb7 996:859f9b4339e6
1 # - Check if a given include file exists and error out if not.
2 # CFUNGE_REQUIRE_INCLUDE(_name)
3 #
4 # _name - Include file to check for.
5 #
6 # The same variables as for CheckIncludeFile affect this macro.
7 #
8 # Will set CFUNGE_CHECKINCLUDE_<name> (as CheckIncludeFile out variable).
9 #
10
11 # cfunge - A standard-conforming Befunge93/98/109 interpreter in C.
12 # Copyright (C) 2008 Arvid Norlander <anmaster AT tele2 DOT se>
13 #
14 # This program is free software: you can redistribute it and/or modify
15 # it under the terms of the GNU General Public License as published by
16 # the Free Software Foundation, either version 3 of the License, or
17 # (at the proxy's option) any later version. Arvid Norlander is a
18 # proxy who can decide which future versions of the GNU General Public
19 # License can be used.
20 #
21 # This program is distributed in the hope that it will be useful,
22 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 # GNU General Public License for more details.
25 #
26 # You should have received a copy of the GNU General Public License
27 # along with this program. If not, see <http://www.gnu.org/licenses/>.
28
29 include(CheckIncludeFile)
30
31 macro(CFUNGE_REQUIRE_INCLUDE _name)
32 CHECK_INCLUDE_FILE(${_name} "CFUNGE_CHECKINCLUDE_${_name}")
33 if (NOT "CFUNGE_CHECKINCLUDE_${_name}")
34 message(FATAL_ERROR
35 "Your system seems to be missing the header \"${_name}\" which is required by cfunge.")
36 endif (NOT "CFUNGE_CHECKINCLUDE_${_name}")
37 endmacro(CFUNGE_REQUIRE_INCLUDE)