Commit e7ac369a authored by Aleksey Midenkov's avatar Aleksey Midenkov

Scripts: print_warnings deps fix

parent 94f83b26
......@@ -21,5 +21,17 @@ ADD_CUSTOM_TARGET(rm_compile.warnings ALL
WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
ADD_CUSTOM_TARGET(print_warnings ALL
COMMAND bash -c '[ -f compile.warnings ] && { echo "Warnings found:" \; cat compile.warnings \; echo "" \; } \; true'
DEPENDS mysql udf_example rm_compile.warnings
DEPENDS mysqld rm_compile.warnings
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}")
IF(TARGET explain_filename-t)
ADD_DEPENDENCIES(print_warnings explain_filename-t)
ENDIF()
IF(TARGET mysql_client_test)
ADD_DEPENDENCIES(print_warnings mysql_client_test)
ENDIF()
IF(TARGET udf_example)
ADD_DEPENDENCIES(print_warnings udf_example)
ENDIF()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment