Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake: check map-qt dependency on map #1630

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,10 @@ else()
endif()
option(OSMSCOUT_BUILD_MAP_QT "Enable build of Qt map drawing backend" ${OSMSCOUT_BUILD_MAP_QT_CACHE})
if(OSMSCOUT_BUILD_MAP_QT)
if(NOT ${OSMSCOUT_BUILD_MAP})
message(SEND_ERROR "The main map drawing interface is required for QT map drawing backend")
set(OSMSCOUT_BUILD_MAP_QT OFF)
endif()
if(OSMSCOUT_BUILD_MAP_QT)
add_subdirectory(libosmscout-map-qt)
endif()
Expand All @@ -355,7 +359,7 @@ option(OSMSCOUT_BUILD_MAP_SVG "Enable build of SVG map drawing backend" ${OSMSCO
if(OSMSCOUT_BUILD_MAP_SVG)
if(NOT ${OSMSCOUT_BUILD_MAP})
message(SEND_ERROR "The main map drawing interface is required for SVG map drawing backend")
set(OSMSCOUT_BUILD_MAP_SVG OFF)
set(OSMSCOUT_BUILD_MAP_SVG OFF)
endif()
if(OSMSCOUT_BUILD_MAP_SVG)
add_subdirectory(libosmscout-map-svg)
Expand Down
Loading