summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmake/check_compiler_flag.cmake6
-rw-r--r--cmake/maintainer.cmake2
-rw-r--r--configure.cmake2
3 files changed, 5 insertions, 5 deletions
diff --git a/cmake/check_compiler_flag.cmake b/cmake/check_compiler_flag.cmake
index 303d5d8d3c8..8192f077344 100644
--- a/cmake/check_compiler_flag.cmake
+++ b/cmake/check_compiler_flag.cmake
@@ -15,7 +15,7 @@ SET(fail_patterns
)
MACRO (MY_CHECK_C_COMPILER_FLAG flag)
- STRING(REGEX REPLACE "[-,= ]" "_" result "HAVE_C_${flag}")
+ STRING(REGEX REPLACE "[-,= ]" "_" result "have_C_${flag}")
SET(SAVE_CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}")
SET(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} ${flag}")
CHECK_C_SOURCE_COMPILES("int main(void) { return 0; }" ${result}
@@ -24,7 +24,7 @@ MACRO (MY_CHECK_C_COMPILER_FLAG flag)
ENDMACRO()
MACRO (MY_CHECK_CXX_COMPILER_FLAG flag)
- STRING(REGEX REPLACE "[-,= ]" "_" result "HAVE_CXX_${flag}")
+ STRING(REGEX REPLACE "[-,= ]" "_" result "have_CXX_${flag}")
SET(SAVE_CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}")
SET(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} ${flag}")
CHECK_CXX_SOURCE_COMPILES("int main(void) { return 0; }" ${result}
@@ -42,7 +42,7 @@ FUNCTION(MY_CHECK_AND_SET_COMPILER_FLAG flag)
MY_CHECK_CXX_COMPILER_FLAG(${flag})
STRING(REGEX REPLACE "[-,= ]" "_" result "${flag}")
FOREACH(lang C CXX)
- IF (HAVE_${lang}_${result})
+ IF (have_${lang}_${result})
IF(ARGN)
FOREACH(type ${ARGN})
SET(CMAKE_${lang}_FLAGS_${type} "${CMAKE_${lang}_FLAGS_${type}} ${flag}" PARENT_SCOPE)
diff --git a/cmake/maintainer.cmake b/cmake/maintainer.cmake
index 24547103b63..82cfda6f6eb 100644
--- a/cmake/maintainer.cmake
+++ b/cmake/maintainer.cmake
@@ -16,7 +16,7 @@
# Common warning flags for GCC, G++, Clang and Clang++
SET(MY_WARNING_FLAGS "-Wall -Wextra -Wformat-security -Wno-init-self")
MY_CHECK_C_COMPILER_FLAG("-Wvla") # Requires GCC 4.3+ or Clang
-IF(HAVE_C__Wvla)
+IF(have_C__Wvla)
SET(MY_WARNING_FLAGS "${MY_WARNING_FLAGS} -Wvla")
ENDIF()
diff --git a/configure.cmake b/configure.cmake
index aaf0268888a..dba5a3bf79c 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -276,7 +276,7 @@ FIND_PACKAGE (Threads)
FUNCTION(MY_CHECK_PTHREAD_ONCE_INIT)
MY_CHECK_C_COMPILER_FLAG("-Werror")
- IF(NOT HAVE_C__Werror)
+ IF(NOT have_C__Werror)
RETURN()
ENDIF()
SET(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -Werror")