summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2016-11-16 13:05:40 +0000
committerAleksey Midenkov <midenok@gmail.com>2017-05-05 20:36:17 +0300
commitbe0f58697209e6da2b7ccc6fecaf83e5aaddca5a (patch)
tree47599fe1dda2ad27dde1584f89c2614eae2d6c5d /CMakeLists.txt
parenta5feb98c47786e3825ec324d0d3bb403da448d4e (diff)
downloadmariadb-git-be0f58697209e6da2b7ccc6fecaf83e5aaddca5a.tar.gz
Scripts: print warnings fixes
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt14
1 files changed, 1 insertions, 13 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a1dea914043..2673b3fdc4e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -481,16 +481,4 @@ IF(NON_DISTRIBUTABLE_WARNING)
You have linked MariaDB with GPLv3 libraries! You may not distribute the resulting binary. If you do, you will put yourself into a legal problem with Free Software Foundation.")
ENDIF()
-IF (CMAKE_BUILD_TYPE MATCHES "Debug")
- SET_DIRECTORY_PROPERTIES(PROPERTIES RULE_LAUNCH_COMPILE
- "bash ${CMAKE_SOURCE_DIR}/BUILD/capture_warnings.sh ${CMAKE_BINARY_DIR}")
- SET_DIRECTORY_PROPERTIES(PROPERTY ADDITIONAL_MAKE_CLEAN_FILES
- "${CMAKE_BINARY_DIR}/compile.warnings")
- ADD_CUSTOM_TARGET(REMOVE_WARNINGS_FILE ALL
- COMMAND rm -f "compile.warnings"
- WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
- ADD_CUSTOM_TARGET(REPRINT ALL
- COMMAND if [ -f "compile.warnings" ]; then cat "compile.warnings" \; fi
- DEPENDS mysql udf_example explain_filename-t REMOVE_WARNINGS_FILE
- WORKING_DIRECTORY "${CMAKE_BINARY_DIR}")
-ENDIF()
+INCLUDE(${CMAKE_SOURCE_DIR}/cmake/print_warnings.cmake)