diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-12-22 20:25:29 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2016-01-25 16:38:23 +0100 |
commit | 0fab28ceddb61ce9caf15f6449d3d500577e3892 (patch) | |
tree | ae9e1dd4f03d65b4978a4389c0fdb0604f05f79c /cmake/maintainer.cmake | |
parent | da0991c6daaa650ec224fe4028975eaf6db02ba7 (diff) | |
download | mariadb-git-0fab28ceddb61ce9caf15f6449d3d500577e3892.tar.gz |
cmake: better auto *.i targets in Makefiles
Diffstat (limited to 'cmake/maintainer.cmake')
-rw-r--r-- | cmake/maintainer.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/maintainer.cmake b/cmake/maintainer.cmake index 24547103b63..367b78afd0d 100644 --- a/cmake/maintainer.cmake +++ b/cmake/maintainer.cmake @@ -56,3 +56,10 @@ ELSEIF(MYSQL_MAINTAINER_MODE MATCHES "AUTO") SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} ${MY_MAINTAINER_C_WARNINGS}") SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${MY_MAINTAINER_CXX_WARNINGS}") ENDIF() + +IF(CMAKE_C_COMPILER_ID MATCHES "GNU") + STRING(REPLACE " -E " " -E -dDI " CMAKE_C_CREATE_PREPROCESSED_SOURCE ${CMAKE_C_CREATE_PREPROCESSED_SOURCE}) +ENDIF() +IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU") + STRING(REPLACE " -E " " -E -dDI " CMAKE_CXX_CREATE_PREPROCESSED_SOURCE ${CMAKE_CXX_CREATE_PREPROCESSED_SOURCE}) +ENDIF() |