mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Cmake: correctly handle not finding Marble
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
23265f31b5
commit
70b0b3d3f1
1 changed files with 4 additions and 1 deletions
|
@ -10,6 +10,9 @@ if(NOT NO_MARBLE)
|
|||
include_directories(${MARBLE_INCLUDE_DIR})
|
||||
else()
|
||||
set(NO_MARBLE ON)
|
||||
message(STATUS "building without marble widget support")
|
||||
add_definitions(-DNO_MARBLE)
|
||||
set(MARBLE_LIBRARIES "")
|
||||
endif()
|
||||
endif()
|
||||
add_custom_target(link_marble_data ALL COMMAND rm -rf ./marbledata && ln -s ${CMAKE_SOURCE_DIR}/marbledata ${CMAKE_BINARY_DIR}/marbledata)
|
||||
|
@ -17,4 +20,4 @@ else()
|
|||
message(STATUS "building without marble widget support")
|
||||
add_definitions(-DNO_MARBLE)
|
||||
set(MARBLE_LIBRARIES "")
|
||||
endif()
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue