diff options
author | Brad King <brad.king@kitware.com> | 2017-12-04 15:52:41 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-12-04 15:52:47 (GMT) |
commit | d5681e353ad94db8cfd0343bd50b090a6cda8c71 (patch) | |
tree | 53b1a78e84d832c9a5862004cc6917704e0b5573 /Modules/CheckIncludeFiles.cmake | |
parent | 8c97382c8e2f5699be72089371c67949c7e49461 (diff) | |
parent | 4d611868dfe37e73aaba4cdfde37b17e8a2ec7c1 (diff) | |
download | CMake-d5681e353ad94db8cfd0343bd50b090a6cda8c71.zip CMake-d5681e353ad94db8cfd0343bd50b090a6cda8c71.tar.gz CMake-d5681e353ad94db8cfd0343bd50b090a6cda8c71.tar.bz2 |
Merge topic 'pragma-once'
4d611868 Check*: Added include guards
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1327
Diffstat (limited to 'Modules/CheckIncludeFiles.cmake')
-rw-r--r-- | Modules/CheckIncludeFiles.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CheckIncludeFiles.cmake b/Modules/CheckIncludeFiles.cmake index 6cf9c49..59afdab 100644 --- a/Modules/CheckIncludeFiles.cmake +++ b/Modules/CheckIncludeFiles.cmake @@ -39,6 +39,8 @@ # See modules :module:`CheckIncludeFile` and :module:`CheckIncludeFileCXX` # to check for a single header file in ``C`` or ``CXX`` languages. +include_guard(GLOBAL) + macro(CHECK_INCLUDE_FILES INCLUDE VARIABLE) if(NOT DEFINED "${VARIABLE}") set(CMAKE_CONFIGURABLE_FILE_CONTENT "/* */\n") |