summaryrefslogtreecommitdiff
path: root/cmake/do_abi_check.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/do_abi_check.cmake')
-rw-r--r--cmake/do_abi_check.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmake/do_abi_check.cmake b/cmake/do_abi_check.cmake
index aa7784e7372..78006bd018c 100644
--- a/cmake/do_abi_check.cmake
+++ b/cmake/do_abi_check.cmake
@@ -56,8 +56,9 @@ FOREACH(file ${ABI_HEADERS})
SET(tmpfile ${file}.pp.tmp)
EXECUTE_PROCESS(
COMMAND ${COMPILER}
- -E -nostdinc -dI -I${SOURCE_DIR}/include -I${BINARY_DIR}/include
- -I${SOURCE_DIR}/include/mysql -I${SOURCE_DIR}/sql ${file}
+ -E -nostdinc -dI -DMYSQL_ABI_CHECK -I${SOURCE_DIR}/include
+ -I${BINARY_DIR}/include -I${SOURCE_DIR}/include/mysql -I${SOURCE_DIR}/sql
+ ${file}
ERROR_QUIET OUTPUT_FILE ${tmpfile})
EXECUTE_PROCESS(
COMMAND sed -e