cmake: Don’t use message(“”)

If there’s no category, the message ends up in stderr instead of stdout with the other regular CMake output.
This commit is contained in:
Florent Castelli
2017-01-17 21:47:24 +01:00
parent 2c6d2dd1e3
commit 6829b42846
3 changed files with 72 additions and 72 deletions

View File

@ -2,7 +2,7 @@ find_package(PkgConfig)
macro(_internal_message msg)
if(NOT ${_is_quiet})
message("${msg}")
message(STATUS "${msg}")
endif()
endmacro()
@ -80,11 +80,11 @@ macro(check_libav)
unset(CMAKE_REQUIRED_LIBRARIES)
endif()
if(LIBAV_FOUND)
message("libav/ffmpeg found, enabling AVI frame dumps")
message(STATUS "libav/ffmpeg found, enabling AVI frame dumps")
add_definitions(-DHAVE_LIBAV)
include_directories(${LIBAV_INCLUDE_DIRS})
else()
message("libav/ffmpeg not found, disabling AVI frame dumps")
message(STATUS "libav/ffmpeg not found, disabling AVI frame dumps")
endif()
endmacro()