From 70b0b3d3f1cf2d24cdcbbfdb050d3de6f9051c34 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 16 Dec 2015 09:57:08 -0800 Subject: [PATCH] Cmake: correctly handle not finding Marble Signed-off-by: Dirk Hohndel --- cmake/Modules/HandleFindMarble.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()