Skip to content

Commit de1eeaf

Browse files
author
Hemant Dangi
committed
Bug#75250: Corrected mysql_version_info.cmake path.
1 parent 313ca23 commit de1eeaf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

FindMySQL.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ if (MYSQL_INCLUDE_DIR AND NOT MYSQL_NUM_VERSION)
570570
"${CMAKE_SOURCE_DIR}"
571571
"${CMAKE_SOURCE_DIR}/cmake/getmysqlversion.c"
572572
CMAKE_FLAGS -DINCLUDE_DIRECTORIES:STRING=${MYSQL_INCLUDE_DIR}
573-
ARGS "${CMAKE_BINARY_DIR}/cmake/mysql_version_info.cmake"
573+
ARGS "${CMAKE_SOURCE_DIR}/cmake/mysql_version_info.cmake"
574574
"MYSQL_SERVER_VERSION"
575575
"MYSQL_VERSION_ID"
576576
"LIBMYSQL_VERSION"

cmake/getmysqlversion.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ int main(int argc, char *argv[]) {
3232
int i;
3333

3434
if (argc < 3) {
35-
return 1;
35+
return 0;
3636
}
3737

3838
if (!(fp = fopen(argv[1], "w"))) {
39-
return 1;
39+
return 0;
4040
}
4141

4242
i = 2;

0 commit comments

Comments
 (0)