summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-11-30 12:42:41 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-11-30 12:42:45 (GMT)
commitc5fdd66252a843eff182e6f6b773ef11a16e162b (patch)
tree72823fd1b350365b00b32a2fdac676d87d5a3b3f /Modules
parent868fdb439a2b984de3247cda5616991f6bf7c839 (diff)
parent3eee33012e10a77b6b337dc70b2dc6b2320c5ecc (diff)
downloadCMake-c5fdd66252a843eff182e6f6b773ef11a16e162b.zip
CMake-c5fdd66252a843eff182e6f6b773ef11a16e162b.tar.gz
CMake-c5fdd66252a843eff182e6f6b773ef11a16e162b.tar.bz2
Merge topic 'CheckIncludeFiles-fix-src-name'
3eee3301 CheckIncludeFiles: Fix name of source file used for check Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1538
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CheckIncludeFiles.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CheckIncludeFiles.cmake b/Modules/CheckIncludeFiles.cmake
index 347231c..6cf9c49 100644
--- a/Modules/CheckIncludeFiles.cmake
+++ b/Modules/CheckIncludeFiles.cmake
@@ -60,9 +60,9 @@ macro(CHECK_INCLUDE_FILES INCLUDE VARIABLE)
endif()
if(_lang STREQUAL "C")
- set(src ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CheckIncludeFiles/${var}.c)
+ set(src ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CheckIncludeFiles/${VARIABLE}.c)
elseif(_lang STREQUAL "CXX")
- set(src ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CheckIncludeFiles/${var}.cpp)
+ set(src ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CheckIncludeFiles/${VARIABLE}.cpp)
else()
message(FATAL_ERROR "Unknown language:\n ${_lang}\nSupported languages: C, CXX.\n")
endif()