View Issue Details

IDProjectCategoryView StatusLast Update
0004526Spring engineLinuxpublic2014-08-29 13:25
Reportertspuhler Assigned Toabma  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionduplicate 
Product Version97.0 
Summary0004526: spring-0.97 doesn't build with cmake-3.x
Descriptionspring-0.97 doesn't build with cmake-3.x (we will have cmake-3 in the upcoming release of mgaeia5)
here is the error:
CMake Error in tools/unitsync/test/CMakeLists.txt:
  You have set CMAKE_BACKWARDS_COMPATIBILITY to a CMake version less than
  2.4. This version of CMake only supports backwards compatibility with
  CMake 2.4 or later. For compatibility with older versions please use any
  CMake 2.8.x release or lower.


-- Configuring incomplete, errors occurred!
Steps To Reproducebuild the rpm with spec file (mageia)
Additional InformationI applied a patch to comment out the cmake to make it build. I don't know if this will create some problems.

diff -ur spring_97.0/tools/unitsync/test/CMakeLists.txt spring_97.0-cmake-3/tools/unitsync/test/CMakeLists.txt
--- spring_97.0/tools/unitsync/test/CMakeLists.txt 2014-05-31 16:27:46.000000000 -0700
+++ spring_97.0-cmake-3/tools/unitsync/test/CMakeLists.txt 2014-08-28 17:07:22.048863421 -0700
@@ -11,8 +11,9 @@
 REMOVE_DEFINITIONS(-DUNITSYNC)
 
 # To allow linking to MODULE_LIBRARY targets
-CMAKE_POLICY(SET CMP0001 OLD)
-SET(CMAKE_BACKWARDS_COMPATIBILITY "2.2")
+# This doesn't work with current cmake-3.xx
+#CMAKE_POLICY(SET CMP0001 OLD)
+#SET(CMAKE_BACKWARDS_COMPATIBILITY "2.2")
 
 ADD_EXECUTABLE(lua2php EXCLUDE_FROM_ALL lua2php.cpp)
 TARGET_LINK_LIBRARIES(lua2php unitsync ${CMAKE_DL_LIBS
TagsNo tags attached.
Attached Files
cmake-3.patch (Attachment missing)
Checked infolog.txt for Errors

Relationships

duplicate of 0004415 resolvedabma Spring 96 fails to build on Fedora 21 (rawhide) due to CMake 3.0 compatibility. 

Activities

Issue History

Date Modified Username Field Change
2014-08-29 02:27 tspuhler New Issue
2014-08-29 02:27 tspuhler File Added: cmake-3.patch
2014-08-29 13:24 abma Relationship added duplicate of 0004415
2014-08-29 13:25 abma Status new => closed
2014-08-29 13:25 abma Assigned To => abma
2014-08-29 13:25 abma Resolution open => duplicate