summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <iggy@alf.(none)>2007-07-27 11:54:54 -0400
committerunknown <iggy@alf.(none)>2007-07-27 11:54:54 -0400
commit32cc0694bf6d5c8673f4c270793dedb5a8a8ab1e (patch)
tree1b6103400a43b502050c807ef0a76b24c1aac155
parenta34879ebd2c6c02f77a2df080c4696f0039ebffa (diff)
downloadmariadb-git-32cc0694bf6d5c8673f4c270793dedb5a8a8ab1e.tar.gz
Bug#30103 CMake build solution does not remove auto-generated resources
- Add CMake rule to remove files.
-rwxr-xr-xsql/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/CMakeLists.txt b/sql/CMakeLists.txt
index 0cbeb97184f..b0553f622f8 100755
--- a/sql/CMakeLists.txt
+++ b/sql/CMakeLists.txt
@@ -138,6 +138,10 @@ ADD_CUSTOM_COMMAND(
)
ADD_DEPENDENCIES(mysqld${MYSQLD_EXE_SUFFIX} gen_lex_hash)
+# Remove the auto-generated files as part of 'Clean Solution'
+SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES
+ "lex_hash.h;message.rc;message.h;sql_yacc.h;sql_yacc.cc")
+
ADD_LIBRARY(udf_example MODULE udf_example.c udf_example.def)
ADD_DEPENDENCIES(udf_example strings)
TARGET_LINK_LIBRARIES(udf_example wsock32)