From 1d0d6850493b725b49f9889f20412dbdbee74554 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Fri, 20 Sep 2002 14:16:43 -0400 Subject: Simplify checking for headers --- Modules/CheckIncludeFile.c.in | 8 -------- Modules/CheckIncludeFile.cmake | 1 - 2 files changed, 9 deletions(-) diff --git a/Modules/CheckIncludeFile.c.in b/Modules/CheckIncludeFile.c.in index 5f0f466..40441f1 100644 --- a/Modules/CheckIncludeFile.c.in +++ b/Modules/CheckIncludeFile.c.in @@ -1,14 +1,6 @@ -#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 */ diff --git a/Modules/CheckIncludeFile.cmake b/Modules/CheckIncludeFile.cmake index f88c7ca..8a35900 100644 --- a/Modules/CheckIncludeFile.cmake +++ b/Modules/CheckIncludeFile.cmake @@ -13,7 +13,6 @@ MACRO(CHECK_INCLUDE_FILE INCLUDE VARIABLE) TRY_COMPILE(COMPILE_OK ${PROJECT_BINARY_DIR} ${PROJECT_BINARY_DIR}/CheckIncludeFile.c - COMPILE_DEFINITIONS -DCHECK_INCLUDE_FILE="${INCLUDE}" OUTPUT_VARIABLE OUTPUT) IF(COMPILE_OK) SET(${VARIABLE} ${COMPILE_OK}) -- cgit v0.12