diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-09-20 17:40:39 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-09-20 17:40:39 (GMT) |
commit | 5a08e1b6dcd1a476f7750839204205f54bef8e13 (patch) | |
tree | 83d81e100328138e74815d56abc3862d299ca297 /Modules/CheckIncludeFile.c.in | |
parent | fdcd1973523d1b9e85dae16e547aec7a0ac43a9b (diff) | |
download | CMake-5a08e1b6dcd1a476f7750839204205f54bef8e13.zip CMake-5a08e1b6dcd1a476f7750839204205f54bef8e13.tar.gz CMake-5a08e1b6dcd1a476f7750839204205f54bef8e13.tar.bz2 |
Add macro which checks if the header file exists
Diffstat (limited to 'Modules/CheckIncludeFile.c.in')
-rw-r--r-- | Modules/CheckIncludeFile.c.in | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Modules/CheckIncludeFile.c.in b/Modules/CheckIncludeFile.c.in new file mode 100644 index 0000000..5f0f466 --- /dev/null +++ b/Modules/CheckIncludeFile.c.in @@ -0,0 +1,14 @@ +#ifdef CHECK_INCLUDE_FILE + +#include <${CHECK_INCLUDE_FILE_VAR}> + +int main() +{ + return 0; +} + +#else /* CHECK_INCLUDE_FILE */ + +# error "CHECK_INCLUDE_FILE has to specify the include file" + +#endif /* CHECK_INCLUDE_FILE */ |