mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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})
|
include_directories(${MARBLE_INCLUDE_DIR})
|
||||||
else()
|
else()
|
||||||
set(NO_MARBLE ON)
|
set(NO_MARBLE ON)
|
||||||
|
message(STATUS "building without marble widget support")
|
||||||
|
add_definitions(-DNO_MARBLE)
|
||||||
|
set(MARBLE_LIBRARIES "")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
add_custom_target(link_marble_data ALL COMMAND rm -rf ./marbledata && ln -s ${CMAKE_SOURCE_DIR}/marbledata ${CMAKE_BINARY_DIR}/marbledata)
|
add_custom_target(link_marble_data ALL COMMAND rm -rf ./marbledata && ln -s ${CMAKE_SOURCE_DIR}/marbledata ${CMAKE_BINARY_DIR}/marbledata)
|
||||||
|
|
Loading…
Add table
Reference in a new issue