From 44545ecd19be5a4f108cc2e5c23acc80abe65f63 Mon Sep 17 00:00:00 2001 From: Jan Macheta Date: Thu, 4 Jan 2024 19:17:54 +0100 Subject: [PATCH] fix top level detection --- CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f7d6bdc..a2af748 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,10 +48,9 @@ option(CONFIG_LOGGER_VERBOSE_ERRORS "Uses custom compiler pragmas to display additional debug information on compilation errors" OFF ) -option(CONFIG_LOGGER_BUILD_TESTS "Forces building test cases" PROJECT_IS_TOP_LEVEL) - -option(CONFIG_LOGGER_ENABLE_INSTALL_TARGET "Enables install target" PROJECT_IS_TOP_LEVEL) +option(CONFIG_LOGGER_BUILD_TESTS "Forces building test cases" ${PROJECT_IS_TOP_LEVEL}) +option(CONFIG_LOGGER_ENABLE_INSTALL_TARGET "Enables install target" ${PROJECT_IS_TOP_LEVEL}) set(EXTENDED_MODULE_PATH ${CMAKE_MODULE_PATH};${CMAKE_CURRENT_LIST_DIR}/cmake) list(REMOVE_DUPLICATES EXTENDED_MODULE_PATH)