Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
70630e3c
Commit
70630e3c
authored
May 19, 2017
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workaround dependency problems (constant rebuilds) in Visual Studio generator
parent
725e47bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
sql/CMakeLists.txt
sql/CMakeLists.txt
+11
-4
No files found.
sql/CMakeLists.txt
View file @
70630e3c
...
...
@@ -38,15 +38,22 @@ SET_SOURCE_FILES_PROPERTIES(${GEN_SOURCES}
# Gen_lex_token
# Make sure sql_yacc.h is generated before compiling gen_lex_token
IF
(
NOT CMAKE_GENERATOR MATCHES
"Visual Studio"
)
SET
(
DEPENDS_gen_lex_token DEPENDS gen_lex_token
)
SET
(
DEPENDS_gen_lex_hash DEPENDS gen_lex_hash
)
ENDIF
()
IF
(
NOT CMAKE_CROSSCOMPILING
)
ADD_EXECUTABLE
(
gen_lex_token gen_lex_token.cc
)
ADD_DEPENDENCIES
(
gen_lex_token GenServerSource
)
ADD_EXECUTABLE
(
gen_lex_token gen_lex_token.cc
${
CMAKE_CURRENT_BINARY_DIR
}
/sql_yacc.h
)
ENDIF
()
ADD_CUSTOM_COMMAND
(
OUTPUT
${
CMAKE_CURRENT_BINARY_DIR
}
/lex_token.h
COMMAND gen_lex_token > lex_token.h
DEPENDS gen_lex_token
${
DEPENDS_gen_lex_token
}
)
ADD_DEFINITIONS
(
-DMYSQL_SERVER -DHAVE_EVENT_SCHEDULER
)
...
...
@@ -295,7 +302,7 @@ ENDIF()
ADD_CUSTOM_COMMAND
(
OUTPUT
${
CMAKE_CURRENT_BINARY_DIR
}
/lex_hash.h
COMMAND gen_lex_hash > lex_hash.h
DEPENDS gen_lex_hash
${
DEPENDS_gen_lex_hash
}
)
MYSQL_ADD_EXECUTABLE
(
mysql_tzinfo_to_sql tztime.cc COMPONENT Server
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment