diff options
author | Andrew Stitcher <astitcher@apache.org> | 2015-09-04 17:47:40 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2015-09-04 17:47:40 +0000 |
commit | d7ac11084dcc43b47b8f514151235d6fa9efe186 (patch) | |
tree | bb675a12f493558482b5c52283689bff42c245c8 | |
parent | c7500cc5473ab365363527498350abc975fabd67 (diff) | |
download | qpid-python-d7ac11084dcc43b47b8f514151235d6fa9efe186.tar.gz |
NO-JIRA: Remove CMake warning message due to now deprecated if() construct
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1701302 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-x | qpid/cpp/CMakeModules/CheckSizetDistinct.cmake | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/qpid/cpp/CMakeModules/CheckSizetDistinct.cmake b/qpid/cpp/CMakeModules/CheckSizetDistinct.cmake index 2ae4a89de9..463a37d4a8 100755 --- a/qpid/cpp/CMakeModules/CheckSizetDistinct.cmake +++ b/qpid/cpp/CMakeModules/CheckSizetDistinct.cmake @@ -25,13 +25,12 @@ INCLUDE (CheckCXXSourceCompiles) FUNCTION (check_size_t_distinct VARIABLE) # No need to check if we already did. If you want to re-run, clear it # from the cache. - if ("${VARIABLE}" MATCHES "^${VARIABLE}$") - message (STATUS "Checking to see if size_t is a distinct type") + if (NOT DEFINED ${VARIABLE}) + message (STATUS "Check for size_t") set (CMAKE_REQUIRED_QUIET ON) set (CMAKE_REQUIRED_INCLUDES "${CMAKE_SOURCE_DIR}/include") CHECK_CXX_SOURCE_COMPILES ( " -#include <iostream> #include \"qpid/sys/IntegerTypes.h\" // Define functions that will fail to compile if size_t is the same as // one of the int types defined in IntegerTypes.h @@ -48,9 +47,9 @@ int main (int, char *[]) { " ${VARIABLE}) if (${VARIABLE}) - message (STATUS "Checking to see if size_t is a distinct type - yes") + message (STATUS "Check for size_t -- NOT a distinct type") else (${VARIABLE}) - message (STATUS "Checking to see if size_t is a distinct type - no") + message (STATUS "Check for size_t -- distinct type") endif (${VARIABLE}) - endif ("${VARIABLE}" MATCHES "^${VARIABLE}$") + endif () ENDFUNCTION (check_size_t_distinct VARIABLE) |