diff --git a/CMakeLists.txt b/CMakeLists.txt index 10281eb3..39ac5d31 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,8 +45,10 @@ if(NOT QML_IMPORT_PATH) endif() ## Shared macros and functions: -find_package(LiriCMakeShared "2.0.99" REQUIRED NO_MODULE) -list(APPEND CMAKE_MODULE_PATH "${LCS_MODULE_PATH}") +if(NOT LIRI_LOCAL_ECM) + find_package(LiriCMakeShared "2.0.99" REQUIRED NO_MODULE) + list(APPEND CMAKE_MODULE_PATH "${LCS_MODULE_PATH}") +endif() ## Add some paths to check for CMake modules: list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake;${CMAKE_CURRENT_SOURCE_DIR}/cmake/3rdparty") diff --git a/features.cmake b/features.cmake index 7ea6c406..ace95cd6 100644 --- a/features.cmake +++ b/features.cmake @@ -25,8 +25,10 @@ find_package(Qt6 "6.6.0" LinguistTools ) -## Find Aurora Scanner: -find_package(AuroraScanner REQUIRED) +if(NOT COMMAND aurora_generate_wayland_protocol_client_sources) + ## Find Aurora Scanner: + find_package(AuroraScanner REQUIRED) +endif() #### Features