Skip to content

Commit

Permalink
Fix build failure when Qt Location is not available
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dforsi committed Apr 17, 2024
1 parent 3795b72 commit db4d07e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/feature/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit db4d07e

Please sign in to comment.