[CONC-361] Building Connector/C with cmake 2.8 fails Created: 2018-09-13  Updated: 2022-01-11  Resolved: 2021-06-17

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: 3.0.6
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Daniël van Eeden Assignee: Sergei Golubchik
Resolution: Cannot Reproduce Votes: 0
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



 Comments   
Comment by Sergei Golubchik [ 2018-09-17 ]

Sorry, I wasn't able to repeat it. I've built C/C within the server tree and standalone, with -DWITH_MYSQLCOMPAT=ON and without, neither a build nor make install have ever failed for me.

Generated at Thu Feb 08 03:04:46 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.