Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-45334

CMake 3.20.0 fails to build Analytics

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • No
    • CX Sprint 243, CX Sprint 244

    Description

      Problem
      Build fails with cmake 3.20.0:

      `CMake Error at /Users/patrick/Code/Dev/analytics/copy_jre.cmake:31 (endif):
        Flow control statements are not properly nested.
      CMake Error: Error processing file: /Users/patrick/Code/Dev/analytics/copy_jre.cmake
      

      Suggested fix
      Looks like copy_jre.cmake is wrong and has a endif () that does not match a if

        "${_jre_inst}/lib/jfr.jar"
      )
       
      endif ()
      

      If the endif () is removed it builds successfully. I assume the newer version of cmake as bit stricter.

      Attachments

        For Gerrit Dashboard: MB-45334
        # Subject Branch Project Status CR V

        Activity

          People

            ali.alsuliman Ali Alsuliman
            pvarley Patrick Varley (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change

                PagerDuty