From 87a92fa108b07062760909d25bc2591642718b8f Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Mon, 19 Jan 2015 21:50:47 -0500 Subject: [PATCH] Use message(STATUS for OS detection messages. Changes message output. Preceeds with "--" for CMake status messages. --- CMakeLists.txt | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 86336e0..3f4cfe8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,20 +58,17 @@ endif(NOT CMAKE_BUILD_TYPE) # detect system type if(CMAKE_SYSTEM_NAME MATCHES "Linux") - message("Linux detected") + message(STATUS "Linux detected") set(METER_SOURCES "linux/memory.cc" "linux/cpu.cc" "linux/load.cc") elseif(CMAKE_SYSTEM_NAME MATCHES "Darwin") - # Mac OS X source setting will go here - message( "Darwin detected") + message(STATUS "Darwin detected") set(METER_SOURCES "osx/memory.cc" "osx/cpu.cc" "osx/load.cc") elseif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD") - # FreeBSD STUFF HERE message("FreeBSD detected") message( WARNING "FreeBSD is still experimental!" ) set( METER_SOURCES "bsd/memory_freebsd.cc" "bsd/cpu.cc" "bsd/load.cc" ) elseif(CMAKE_SYSTEM_NAME MATCHES "OpenBSD") - # OpenBSD Stuff Here - message( "OpenBSD detected") + message(STATUS "OpenBSD detected") message( FATAL_ERROR "OpenBSD is not supported! See bsd/openBSD.txt for more info" ) set( METER_SOURCES "bsd/memory_openbsd.cc" "bsd/cpu.cc" "bsd/load.cc" )