Re: Preparse Query Rewrite Plugin DLL
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.
Subject
Views
Written By
Posted
2252
August 12, 2016 05:16PM
869
September 08, 2016 02:23AM
1269
September 14, 2016 07:04PM
957
September 15, 2016 01:40AM
Re: Preparse Query Rewrite Plugin DLL
1101
September 15, 2016 11:34AM
758
August 15, 2016 09:28AM
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.