summaryrefslogtreecommitdiff
path: root/libmysqld/examples
diff options
context:
space:
mode:
authorVladislav Vaintroub <vvaintroub@macbook.local>2009-11-09 19:14:33 +0100
committerVladislav Vaintroub <vvaintroub@macbook.local>2009-11-09 19:14:33 +0100
commitcd2fa695de80667bbb8cbfb7d1c99762e5cba380 (patch)
treeba49cf9b4edb4beca947dcb5abeb80213ddb5764 /libmysqld/examples
parent15e58d56c8347999aa080e43a33df26b02bca277 (diff)
downloadmariadb-git-cd2fa695de80667bbb8cbfb7d1c99762e5cba380.tar.gz
Fix problems found by Joro (Xcode generator specific)
Diffstat (limited to 'libmysqld/examples')
-rw-r--r--libmysqld/examples/CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/libmysqld/examples/CMakeLists.txt b/libmysqld/examples/CMakeLists.txt
index 400ddd8b729..ed0e5a361a8 100644
--- a/libmysqld/examples/CMakeLists.txt
+++ b/libmysqld/examples/CMakeLists.txt
@@ -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)