Use message(STATUS for OS detection messages.
Changes message output. Preceeds with "--" for CMake status messages.
This commit is contained in:
parent
ca82149c10
commit
87a92fa108
@ -58,20 +58,17 @@ endif(NOT CMAKE_BUILD_TYPE)
|
|||||||
|
|
||||||
# detect system type
|
# detect system type
|
||||||
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
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")
|
set(METER_SOURCES "linux/memory.cc" "linux/cpu.cc" "linux/load.cc")
|
||||||
elseif(CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
elseif(CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||||
# Mac OS X source setting will go here
|
message(STATUS "Darwin detected")
|
||||||
message( "Darwin detected")
|
|
||||||
set(METER_SOURCES "osx/memory.cc" "osx/cpu.cc" "osx/load.cc")
|
set(METER_SOURCES "osx/memory.cc" "osx/cpu.cc" "osx/load.cc")
|
||||||
elseif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
elseif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||||
# FreeBSD STUFF HERE
|
|
||||||
message("FreeBSD detected")
|
message("FreeBSD detected")
|
||||||
message( WARNING "FreeBSD is still experimental!" )
|
message( WARNING "FreeBSD is still experimental!" )
|
||||||
set( METER_SOURCES "bsd/memory_freebsd.cc" "bsd/cpu.cc" "bsd/load.cc" )
|
set( METER_SOURCES "bsd/memory_freebsd.cc" "bsd/cpu.cc" "bsd/load.cc" )
|
||||||
elseif(CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
|
elseif(CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
|
||||||
# OpenBSD Stuff Here
|
message(STATUS "OpenBSD detected")
|
||||||
message( "OpenBSD detected")
|
|
||||||
message( FATAL_ERROR "OpenBSD is not supported! See bsd/openBSD.txt for more
|
message( FATAL_ERROR "OpenBSD is not supported! See bsd/openBSD.txt for more
|
||||||
info" )
|
info" )
|
||||||
set( METER_SOURCES "bsd/memory_openbsd.cc" "bsd/cpu.cc" "bsd/load.cc" )
|
set( METER_SOURCES "bsd/memory_openbsd.cc" "bsd/cpu.cc" "bsd/load.cc" )
|
||||||
|
Loading…
Reference in New Issue
Block a user