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)