Bug #73427 cmake build issues
Submitted: 29 Jul 2014 19:04 Modified: 27 Oct 2014 16:53
Reporter: Alfredo Kojima Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / C++ Severity:S3 (Non-critical)
Version:1.1.4 OS:Any
Assigned to: CPU Architecture:Any

[29 Jul 2014 19:04] Alfredo Kojima
Description:
There are some issues with the CMake project for C/C++:

* In FindMySQL.cmake there's this line:
    STRING(REGEX MATCHALL "-m([^\r\n]+)" MYSQL_LINK_FLAGS "${_mysql_config_output}")

That will produce:
-- MySQL CXXFLAGS: -I/Users/kojima/wb62/mysql-mac-res/build/conncpp/gpl/../../mysql/include  -Os -g -fno-strict-aliasing -arch i386
-- MySQL Link flags: -mac-res/build/conncpp/gpl/../../mysql/include  -Os -g -fno-strict-aliasing -arch i386

(note the Link flags list that resulted because of the m in the path)

* There's no option to force a dynamic build

How to repeat:
Put mysql_config inside a dir called mysql-mac-res and point cmake to it.
[22 Oct 2014 7:57] Hemant Dangi
Posted by developer:
 
Fixed committed as rev#987.

Removed below line so first case has been fixed.
STRING(REGEX MATCHALL "-m([^\r\n]+)" MYSQL_LINK_FLAGS
"${_mysql_config_output}")
[27 Oct 2014 16:53] Paul DuBois
Noted in 1.1.5 changelog.

CMake could misconfigure the link flags.