MySQL Forums
Forum List  »  Optimizer & Parser

Re: Preparse Query Rewrite Plugin DLL
Posted by: Francois Haddad
Date: September 15, 2016 11:34AM

Thanks Tor, I copied that into my CMakeLists.txt file and am getting a new error.

Also I can't find the ".def" file from my MySQL installation. Could it be I don't have MySQL installed properly for development? I used the "mysql-installer-community-5.7.12.0.msi" to get MySQL on my PC. I see the "mysqld.exe", "libmysql.dll", "libmysql.lib", and lots of .h's in my "C:\Program Files\MySQL\MySQL Server 5.7" folder. But no ".def" anywhere. Could this be part of my issue?

..........CMakeLists.txt..........
cmake_minimum_required(VERSION 3.6.2)

project (MySQLQueryPreParser4)

add_executable(MySQLQueryPreParser4 MySQLQueryPreParser4.cpp)

IF(NOT CMAKE_SYSTEM_NAME STREQUAL "Linux")
TARGET_LINK_LIBRARIES (${target} mysqld ${ARG_LINK_LIBRARIES})
ENDIF()

MYSQL_ADD_PLUGIN(MySQLQueryPreParser4 MySQLQueryPreParser4.cpp
MODULE_ONLY MODULE_OUTPUT_NAME "MySQLQueryPreParser4")

..........Error from CMake..........
CMake Error at CMakeLists.txt:8 (TARGET_LINK_LIBRARIES):
Cannot specify link libraries for target "mysqld" which is not built by
this project.

Options: ReplyQuote


Subject
Views
Written By
Posted
2092
August 12, 2016 05:16PM
781
September 08, 2016 02:23AM
1138
September 14, 2016 07:04PM
854
September 15, 2016 01:40AM
Re: Preparse Query Rewrite Plugin DLL
978
September 15, 2016 11:34AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.