From 848c9e0ad3aaefb857da75de294c25026a66682c Mon Sep 17 00:00:00 2001 From: tmpod Date: Tue, 6 Aug 2024 12:55:08 +0100 Subject: [PATCH] [tools] Fix CMake warning regarding BUILD_STANDALONE Declared the variable in them main CMakeLists.txt, which makes it not "manually-specified". It also documents it, which is a plus. Signed-off-by: tmpod --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e22b4ed88b..8047488be1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -149,6 +149,12 @@ if (BUILD_DESIGNER) add_definitions(-DBUILD_DESIGNER) endif() +option(BUILD_STANDALONE "Build standalone application" OFF) +if (BUILD_STANDALONE) + message(STATUS "Standalone building is enabled") + add_definitions(-DBUILD_STANDALONE) +endif() + option(USE_ASAN "Enable Address Sanitizer" OFF) option(USE_TSAN "Enable Thread Sanitizer" OFF) option(USE_LIBFUZZER "Enable LibFuzzer" OFF)