Author: astitcher
Date: Thu Dec 13 22:38:24 2012
New Revision: 1421585
URL: http://svn.apache.org/viewvc?rev=1421585&view=rev
Log:
NO-JIRA: Avoid using CMAKE_VERSION as it's not available pre cmake 2.8.3
Modified:
qpid/proton/trunk/proton-c/CMakeLists.txt
Modified: qpid/proton/trunk/proton-c/CMakeLists.txt
URL:
http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/CMakeLists.txt?rev=1421585&r1=1421584&r2=1421585&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/CMakeLists.txt (original)
+++ qpid/proton/trunk/proton-c/CMakeLists.txt Thu Dec 13 22:38:24 2012
@@ -55,7 +55,8 @@ set (MAN_INSTALL_DIR share/man CACHE PAT
set (PROTON_SHARE ${SHARE_INSTALL_DIR}/proton-${PN_VERSION})
-if (${CMAKE_VERSION} VERSION_LESS "2.8.0")
+# Can't use ${CMAKE_VERSION) as it is not available in all versions of cmake
2.6
+if ("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}"
VERSION_LESS "2.8.0")
set (OPTIONAL_ARG "")
add_custom_target(docs ALL)
else()
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]