Skip to content

Commit

Permalink
fix cmake message types (#159)
Browse files Browse the repository at this point in the history
Signed-off-by: Mabel Zhang <[email protected]>
  • Loading branch information
mabelzhang authored Feb 26, 2021
1 parent 4d2a19a commit 96faa49
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmake/IgnConfigureBuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,19 @@ macro(ign_configure_build)
#============================================================================
# Print warnings and errors
if(build_warnings)
message("-- BUILD WARNINGS")
message(WARNING "-- BUILD WARNINGS")
foreach (msg ${build_warnings})
message("-- ${msg}")
message(WARNING "-- ${msg}")
endforeach ()
message("-- END BUILD WARNINGS\n")
message(WARNING "-- END BUILD WARNINGS\n")
endif (build_warnings)

if(build_errors)
message("-- BUILD ERRORS: These must be resolved before compiling.")
message(SEND_ERROR "-- BUILD ERRORS: These must be resolved before compiling.")
foreach(msg ${build_errors})
message("-- ${msg}")
message(SEND_ERROR "-- ${msg}")
endforeach()
message("-- END BUILD ERRORS\n")
message(SEND_ERROR "-- END BUILD ERRORS\n")

set(error_str "Errors encountered in build. Please see BUILD ERRORS above.")

Expand Down

0 comments on commit 96faa49

Please sign in to comment.