CMake: use "mode" argument for messages
While it's optional, include by convention and helps to clarify the purpose of a message.
This commit is contained in:
@@ -1043,7 +1043,9 @@ if(WITH_COMPILER_CODE_COVERAGE)
|
||||
set(_code_coverage_defaults "-fprofile-instr-generate -fcoverage-mapping")
|
||||
endif()
|
||||
else()
|
||||
message("unsupported compiler ${CMAKE_C_COMPILER_ID} for WITH_COMPILER_CODE_COVERAGE, disabling.")
|
||||
message(WARNING
|
||||
"unsupported compiler ${CMAKE_C_COMPILER_ID} for WITH_COMPILER_CODE_COVERAGE, disabling."
|
||||
)
|
||||
set(WITH_COMPILER_CODE_COVERAGE OFF)
|
||||
endif()
|
||||
|
||||
|
||||
@@ -208,7 +208,7 @@ if(WITH_COMPILER_ASAN AND MSVC AND NOT MSVC_CLANG)
|
||||
string(APPEND CMAKE_EXE_LINKER_FLAGS_DEBUG " /INCREMENTAL:NO")
|
||||
string(APPEND CMAKE_SHARED_LINKER_FLAGS_DEBUG " /INCREMENTAL:NO")
|
||||
else()
|
||||
message("-- ASAN not supported on MSVC ${CMAKE_CXX_COMPILER_VERSION}")
|
||||
message(WARNING "ASAN not supported on MSVC ${CMAKE_CXX_COMPILER_VERSION}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user