Menu

#1552 Rosegarden fails to build with cmake-3.9.0

None
closed
nobody
None
1
2019-05-10
2017-08-27
Dave Plater
No

openSUSE:Factory has just updated to cmake-3.9.0 and rosegarden fails to build with it. I've opened a ticket https://gitlab.kitware.com/cmake/cmake/issues/17222 as it appears to be a cmake bug involving
No rule to make target 'src/svnversion.h', needed by 'src/CMakeFiles/rosegardenprivate_autogen'
I've worked around the problem using "make svnheader" prior to the main make.

Discussion

  • Stuart Prescott

    Stuart Prescott - 2017-08-27

    The dependency for ordering the creation of svnversion.h appears to be incorrect and CMake 3.9 apparently does not order the build in the same way as previous CMakes so that this failure to build is now exposed with parallel builds. The attached patch seems to work fine.

     
  • Dave Plater

    Dave Plater - 2017-08-28

    Can confirm this fixes the build.

     
  • Yves Guillemot

    Yves Guillemot - 2017-09-06

    I currently only run cmake 3.7.2 and the patch doesn't break the build with it.
    So I presume it doesn't break other old cmake versions (which I can't test) and I'm going to commit it.
    Thanks to Dave Plater for reporting and to Stuart Prescott for the patch.

     
    • Dave Plater

      Dave Plater - 2017-09-06

      In fact openSUSE 42.2 has cmake-3.5.2 and it builds fine there with the patch in place.

       
  • Yves Guillemot

    Yves Guillemot - 2017-09-06

    Done in [r15089]

     

    Related

    Commit: [r15089]


    Last edit: Ted Felix 2019-05-10
  • Ted Felix

    Ted Felix - 2019-05-10
    • status: open --> closed
     

Log in to post a comment.