CMake: FATAL_ERROR should not be in message string.
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 2 Nov 2022 09:43:39 +0000 (18:43 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Thu, 3 Nov 2022 01:50:30 +0000 (10:50 +0900)
It should be given as the optional mode argument.
Refer to https://cmake.org/cmake/help/v3.0/command/message.html

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
CMakeLists.txt

index ebd5a18ce3275fdca7f230994f29a49225d1e800..66df73deabb300ed3c04aaa6ea64f93bb6db2ed6 100644 (file)
@@ -52,7 +52,7 @@ IF(MQTT_SUPPORT)
             FIND_LIBRARY(PAHO_MQTT_LIB NAMES paho-mqtt3a paho-mqtt3c paho-mqtt3as paho-mqtt3cs)
 
             IF(NOT PAHO_MQTT_LIB)
-                MESSAGE("FATAL_ERROR Cannot find paho-mqtt-c and mosquitto library.")
+                MESSAGE(FATAL_ERROR "Cannot find paho-mqtt-c and mosquitto library.")
             ELSE()
                 MESSAGE("Found Paho MQTT library.")
             ENDIF()