mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
Fix problems found by Joro (Xcode generator specific)
This commit is contained in:
parent
15e58d56c8
commit
cd2fa695de
2 changed files with 10 additions and 3 deletions
|
@ -39,9 +39,13 @@ IF(CMAKE_GENERATOR MATCHES "Xcode")
|
|||
# It does not seem possible to tell Xcode the resulting target might need
|
||||
# to be linked with C++ runtime. The project needs to have at least one C++
|
||||
# file. Add a dummy one.
|
||||
MYSQL_CREATE_EMPTY_FILE(mysql_client_test_embedded_dummy.cc)
|
||||
ADD_CUSTOM_COMMAND(OUTPUT
|
||||
${CMAKE_CURRENT_BINARY_DIR}/mysql_client_test_embedded_dummy.cc
|
||||
COMMAND ${CMAKE_COMMAND} -E touch
|
||||
${CMAKE_CURRENT_BINARY_DIR}/mysql_client_test_embedded_dummy.cc
|
||||
)
|
||||
ADD_EXECUTABLE(mysql_client_test_embedded
|
||||
mysql_client_test_embedded_dummy.cc
|
||||
${CMAKE_CURRENT_BINARY_DIR}/mysql_client_test_embedded_dummy.cc
|
||||
../../tests/mysql_client_test.c)
|
||||
ELSE()
|
||||
ADD_EXECUTABLE(mysql_client_test_embedded ../../tests/mysql_client_test.c)
|
||||
|
|
|
@ -187,6 +187,9 @@ IF(WIN32 OR HAVE_DLOPEN)
|
|||
SET_TARGET_PROPERTIES(udf_example PROPERTIES LINK_FLAGS "/DEF:${CMAKE_CURRENT_SOURCE_DIR}/udf_example.def")
|
||||
ENDIF()
|
||||
TARGET_LINK_LIBRARIES(udf_example strings)
|
||||
ELSE()
|
||||
# udf_example is using safemutex exported by mysqld
|
||||
TARGET_LINK_LIBRARIES(udf_example mysqld)
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
|
@ -246,4 +249,4 @@ IF(WIN32 AND MYSQLD_EXECUTABLE)
|
|||
ELSE()
|
||||
# Not windows or cross compiling, just install an empty directory
|
||||
INSTALL(FILES ${DUMMY_FILE} DESTINATION data/mysql)
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
|
Loading…
Reference in a new issue