aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-16 09:57:08 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-16 09:57:08 -0800
commit70b0b3d3f1cf2d24cdcbbfdb050d3de6f9051c34 (patch)
tree56a1f15b7811ab9553074636e06264f739f0e8f7 /cmake
parent23265f31b5ef29835964b132a8925ab65bee1d42 (diff)
downloadsubsurface-70b0b3d3f1cf2d24cdcbbfdb050d3de6f9051c34.tar.gz
Cmake: correctly handle not finding Marble
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/HandleFindMarble.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/Modules/HandleFindMarble.cmake b/cmake/Modules/HandleFindMarble.cmake
index 40903e6a9..f721d5c2b 100644
--- a/cmake/Modules/HandleFindMarble.cmake
+++ b/cmake/Modules/HandleFindMarble.cmake
@@ -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() \ No newline at end of file
+endif()