LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File qpid-cpp-0.30-cmake.patch of Package qpid-cpp (Project home:jblunck:md)

--- qpid-cpp-0.30/bindings/qmf2/ruby/CMakeLists.txt	2014-06-18 00:44:15.000000000 +0200
+++ qpid-cpp-0.30/bindings/qmf2/ruby/CMakeLists.txt	2014-09-30 11:20:00.681660874 +0200
@@ -24,9 +24,9 @@
     CPLUSPLUS ON
     SWIG_FLAGS "-I${qpid-cpp_SOURCE_DIR}/include;-I${qpid-cpp_SOURCE_DIR}/bindings")
 
-if ((${CMAKE_MAJOR_VERSION} EQUAL 2) AND (${CMAKE_MINOR_VERSION} LESS 8))
+if (((${CMAKE_MAJOR_VERSION} EQUAL 2) AND (${CMAKE_MINOR_VERSION} LESS 8)) OR (${CMAKE_MAJOR_VERSION} GREATER 2))
   set (RUBY_INCLUDE_DIRS ${RUBY_INCLUDE_PATH})
-endif ((${CMAKE_MAJOR_VERSION} EQUAL 2) AND (${CMAKE_MINOR_VERSION} LESS 8))
+endif (((${CMAKE_MAJOR_VERSION} EQUAL 2) AND (${CMAKE_MINOR_VERSION} LESS 8)) OR (${CMAKE_MAJOR_VERSION} GREATER 2))
 
 include_directories(${RUBY_INCLUDE_DIRS}
                     ${qpid-cpp_SOURCE_DIR}/include
--- qpid-cpp-0.30/bindings/qpid/ruby/CMakeLists.txt	2014-06-18 00:44:15.000000000 +0200
+++ qpid-cpp-0.30/bindings/qpid/ruby/CMakeLists.txt	2014-09-30 11:20:00.681660874 +0200
@@ -33,9 +33,9 @@
     CPLUSPLUS ON
     SWIG_FLAGS "-I${qpid-cpp_SOURCE_DIR}/include;-I${qpid-cpp_SOURCE_DIR}/bindings")
 
-if ((${CMAKE_MAJOR_VERSION} EQUAL 2) AND (${CMAKE_MINOR_VERSION} LESS 8))
+if (((${CMAKE_MAJOR_VERSION} EQUAL 2) AND (${CMAKE_MINOR_VERSION} LESS 8)) OR (${CMAKE_MAJOR_VERSION} GREATER 2))
   set (RUBY_INCLUDE_DIRS ${RUBY_INCLUDE_PATH})
-endif ((${CMAKE_MAJOR_VERSION} EQUAL 2) AND (${CMAKE_MINOR_VERSION} LESS 8))
+endif (((${CMAKE_MAJOR_VERSION} EQUAL 2) AND (${CMAKE_MINOR_VERSION} LESS 8)) OR (${CMAKE_MAJOR_VERSION} GREATER 2))
 
 include_directories(${RUBY_INCLUDE_DIRS}
                     ${qpid-cpp_SOURCE_DIR}/include