@cryptotaxi247 / netdata-1 / commits / 5b05fc144

Fix OS detection messages in CMake. (#18243)

`STATUS` is not a CMake message type.

Austin S. Hemmelgarn committed Jul 31, 2024 at 07:00 UTC 5b05fc144cedaf422ef35385ff6c93596362ea76
1 file changed +4 -4
CMakeLists.txt
+4 -4
@@ -98,14 +98,14 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
98 set(OS_MACOS True)
99 find_library(IOKIT IOKit)
100 find_library(FOUNDATION Foundation)
101 - message(INFO " Compiling for MacOS... ")
101 + message(STATUS " Compiling for MacOS... ")
102 elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")
103 set(OS_FREEBSD True)
104 - message(INFO " Compiling for FreeBSD... ")
104 + message(STATUS " Compiling for FreeBSD... ")
105 elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
106 set(OS_LINUX True)
107 add_definitions(-D_GNU_SOURCE)
108 - message(INFO " Compiling for Linux... ")
108 + message(STATUS " Compiling for Linux... ")
109 elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "CYGWIN" OR "${CMAKE_SYSTEM_NAME}" STREQUAL "MSYS" OR "${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
110 set(OS_WINDOWS True)
111
@@ -134,7 +134,7 @@ elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "CYGWIN" OR "${CMAKE_SYSTEM_NAME}" STREQU
134 endif()
135 endif()
136
137 - message(INFO " Compiling for Windows (${CMAKE_SYSTEM_NAME}, MSYSTEM=$ENV{MSYSTEM})... ")
137 + message(STATUS " Compiling for Windows (${CMAKE_SYSTEM_NAME}, MSYSTEM=$ENV{MSYSTEM})... ")
138 else()
139 message(FATAL_ERROR "Unknown/unsupported platform: ${CMAKE_SYSTEM_NAME} (Supported platforms: FreeBSD, Linux, macOS, Windows)")
140 endif()