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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ali.alsuliman Ali Alsuliman
            pvarley Patrick Varley
            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