Fix include conflict in qc_mysqlembedded
qc_mysqlembedded must include the headers from the embedded library and not from Connector-C. So, it must be ensured the embedded library include directories are first.
This commit is contained in:
parent
823fe902d4
commit
7f045beb59
@ -3,9 +3,9 @@ if (BUILD_QC_MYSQLEMBEDDED)
|
||||
# Include the embedded library headers
|
||||
subdirs(MYSQL_INCLUDE_DIR_ALL ${MYSQL_EMBEDDED_INCLUDE_DIR})
|
||||
foreach(DIR ${MYSQL_INCLUDE_DIR_ALL})
|
||||
include_directories(${DIR})
|
||||
include_directories(BEFORE ${DIR})
|
||||
endforeach()
|
||||
include_directories(${MYSQL_EMBEDDED_INCLUDE_DIR}/..)
|
||||
include_directories(BEFORE ${MYSQL_EMBEDDED_INCLUDE_DIR}/..)
|
||||
|
||||
add_library(qc_mysqlembedded SHARED qc_mysqlembedded.cc)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user