Skip to content

Commit

Permalink
Scripts: print_warnings deps fix
Browse files Browse the repository at this point in the history
  • Loading branch information
midenok committed May 5, 2017
1 parent 94f83b2 commit e7ac369
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion cmake/print_warnings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit e7ac369

Please sign in to comment.