From 4554c44a5a27054604ad0791bfb22a36e82cf12e Mon Sep 17 00:00:00 2001 From: Michal Vasko Date: Thu, 2 May 2024 12:09:46 +0200 Subject: [PATCH] cmake BUGFIX libnetconf2 module dir is required --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7375266c..36a96e9d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -177,8 +177,8 @@ endif() if(NOT LN2_THREAD_COUNT) message(STATUS "Unable to learn libnetconf2 thread support, check skipped") endif() -if(SYSREPO_SETUP AND NOT LN2_YANG_MODULE_DIR) - message(FATAL_ERROR "Unable to learn libnetconf2 module search directory.") +if(NOT LN2_YANG_MODULE_DIR) + message(FATAL_ERROR "Unable to learn libnetconf2 module search directory, define LN2_YANG_MODULE_DIR manually.") endif() if(ENABLE_VALGRIND_TESTS)