Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -385,10 +385,14 @@ macro(check_compiler file_to_test flag_to_set)
# Some build applications use regexes on build output to highlight build
# errors. Below, we modify a compiler error message to avoid that a negative
# probe is considered an error in such build applications.
string(REPLACE ": error:"
": compiler_error:" ERROR_MESSAGE_PROCESSED
${ERROR_MESSAGE})
message(STATUS " ${ERROR_MESSAGE_PROCESSED}")
if(FEATURE_PROBE_VERBOSE)
string(REPLACE ": error:"
": compiler_error:" ERROR_MESSAGE_PROCESSED
${ERROR_MESSAGE})
message(STATUS " ${ERROR_MESSAGE_PROCESSED}")
else()
message(STATUS "Use -DFEATURE_PROBE_VERBOSE=ON to view feature probe error output.")
endif()
endif()
endmacro()

Expand Down
Loading