diff options
author | Brad King <brad.king@kitware.com> | 2016-09-14 14:11:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-09-14 14:12:30 (GMT) |
commit | 152bbe5068fc125351f728f04a14113e08f87671 (patch) | |
tree | bc4bddb25473f693da4a527b3f83bde1b84e74f4 | |
parent | a6d3f5418c4f2c1bd99272a9fac1cf4e33b1df09 (diff) | |
download | CMake-152bbe5068fc125351f728f04a14113e08f87671.zip CMake-152bbe5068fc125351f728f04a14113e08f87671.tar.gz CMake-152bbe5068fc125351f728f04a14113e08f87671.tar.bz2 |
Modules: Fix typos in name of `CMAKE_COMPILER_IS_GNUCC` variable
It is not called `CMAKE_COMPILER_IS_GNUC` (without last `C`).
Closes: #16297
-rw-r--r-- | CompileFlags.cmake | 2 | ||||
-rw-r--r-- | Modules/GenerateExportHeader.cmake | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/CompileFlags.cmake b/CompileFlags.cmake index 3c053fa..535f68b 100644 --- a/CompileFlags.cmake +++ b/CompileFlags.cmake @@ -64,7 +64,7 @@ endif() # Workaround for short jump tables on PA-RISC if(CMAKE_SYSTEM_PROCESSOR MATCHES "^parisc") - if(CMAKE_COMPILER_IS_GNUC) + if(CMAKE_COMPILER_IS_GNUCC) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mlong-calls") endif() if(CMAKE_COMPILER_IS_GNUCXX) diff --git a/Modules/GenerateExportHeader.cmake b/Modules/GenerateExportHeader.cmake index e33b927..bacf137 100644 --- a/Modules/GenerateExportHeader.cmake +++ b/Modules/GenerateExportHeader.cmake @@ -208,7 +208,7 @@ macro(_test_compiler_hidden_visibility) if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.2") set(GCC_TOO_OLD TRUE) - elseif(CMAKE_COMPILER_IS_GNUC AND CMAKE_C_COMPILER_VERSION VERSION_LESS "4.2") + elseif(CMAKE_COMPILER_IS_GNUCC AND CMAKE_C_COMPILER_VERSION VERSION_LESS "4.2") set(GCC_TOO_OLD TRUE) elseif(CMAKE_CXX_COMPILER_ID MATCHES Intel AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "12.0") set(_INTEL_TOO_OLD TRUE) |