Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-361

Building Connector/C with cmake 2.8 fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.0.6
    • Fix Version/s: N/A
    • Component/s: None
    • Labels:
      None
    • Environment:
      cmake 2.8.12.2 on CentOS 6.8

      Description

      https://github.com/MariaDB/mariadb-connector-c/blob/master/CMakeLists.txt#L5
      has:

      CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR)
      

      And with cmake 2.8.12.2 on CentOS 6.8 this fails with:

      CMake Error at libmariadb/cmake_install.cmake:36 (FILE):
        file INSTALL cannot find
        "/builddir/build/BUILD/mariadb-connector-c-3.0.6-src/libmariadb/$<TARGET_FILE_DIR:libmariadb>/libmysqlclient.so".
      Call Stack (most recent call first):
        cmake_install.cmake:88 (INCLUDE)
      

      Building with cmake 3.x works.

      My suggestion is to bump the minimum cmake version to 3.x

        Attachments

          Activity

            People

            Assignee:
            serg Sergei Golubchik
            Reporter:
            dveeden Daniël van Eeden
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration