From db4d07e59a983045728c801df41b38dfb534077f Mon Sep 17 00:00:00 2001 From: Daniele Forsi Date: Wed, 17 Apr 2024 23:45:06 +0200 Subject: [PATCH] Fix build failure when Qt Location is not available Adds parenthesis to fix the precedence in the existing test and adds another condition that makes the presence of Qt Location actually optional like in the top level CMakeLists.txt --- plugins/feature/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/feature/CMakeLists.txt b/plugins/feature/CMakeLists.txt index 5911b3c5f..ed2cf43c4 100644 --- a/plugins/feature/CMakeLists.txt +++ b/plugins/feature/CMakeLists.txt @@ -13,7 +13,7 @@ else() endif() # WebEngine on Qt5, WebEngineCore on Qt6 -if(ENABLE_FEATURE_SKYMAP AND Qt${QT_DEFAULT_MAJOR_VERSION}WebEngine_FOUND OR Qt${QT_DEFAULT_MAJOR_VERSION}WebEngineCore_FOUND) +if(ENABLE_FEATURE_SKYMAP AND (Qt${QT_DEFAULT_MAJOR_VERSION}WebEngine_FOUND OR Qt${QT_DEFAULT_MAJOR_VERSION}WebEngineCore_FOUND) AND Qt${QT_DEFAULT_MAJOR_VERSION}Location_FOUND) add_subdirectory(skymap) endif()