summaryrefslogtreecommitdiff
path: root/client/CMakeLists.txt
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mnogosearch.org>2013-09-27 16:29:05 +0400
committerAlexander Barkov <bar@mnogosearch.org>2013-09-27 16:29:05 +0400
commit7fe391adbffa442a6f9588e2cde70fe9b4dc08d9 (patch)
tree1d93fc72b537643cb3f83f2844c91150ff35e122 /client/CMakeLists.txt
parent90b8fee692602d4df8def54d6793a8a8abe4ffab (diff)
downloadmariadb-git-7fe391adbffa442a6f9588e2cde70fe9b4dc08d9.tar.gz
Fixing compilation failure on Windows.
"PCRE_STATIC" must be defined before including pcre.h to avoid linking errors: - unresolved external symbol __imp_regerror - unresolved external symbol __imp_pcre_exec
Diffstat (limited to 'client/CMakeLists.txt')
-rw-r--r--client/CMakeLists.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt
index 27f974ba7a5..1073869fe06 100644
--- a/client/CMakeLists.txt
+++ b/client/CMakeLists.txt
@@ -36,8 +36,7 @@ ENDIF(UNIX)
MYSQL_ADD_EXECUTABLE(mysqltest mysqltest.cc COMPONENT Test)
SET_SOURCE_FILES_PROPERTIES(mysqltest.cc PROPERTIES COMPILE_FLAGS "-DTHREADS")
-TARGET_LINK_LIBRARIES(mysqltest mysqlclient pcre)
-TARGET_LINK_LIBRARIES(mysqltest mysqlclient pcreposix)
+TARGET_LINK_LIBRARIES(mysqltest mysqlclient pcre pcreposix)
SET_TARGET_PROPERTIES(mysqltest PROPERTIES ENABLE_EXPORTS TRUE)