From 4cf20c34489a9f3a53cece13ec07cba44aa44487 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 18 Nov 2015 14:41:47 -0800 Subject: Cmake: add SUBSURFACE_MOBILE definition earlier This way it is set when subsurface-core is built. Signed-off-by: Dirk Hohndel --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index c59d13e55..2d2248f5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -210,6 +210,7 @@ if(SUBSURFACE_MOBILE) set(QT_QUICK_LIB Qt5::Quick) set(QT_LOCATION_PKG Location) set(QT_LOCATION_LIB Qt5::Positioning) + add_definitions(-DSUBSURFACE_MOBILE) endif() if(ANDROID) set(ANDROID_PKG AndroidExtras) @@ -363,7 +364,6 @@ if(SUBSURFACE_MOBILE) subsurface-mobile-main.cpp subsurface-mobile-helper.cpp ) - add_definitions(-DSUBSURFACE_MOBILE) qt5_add_resources(MOBILE_RESOURCES qt-mobile/qml/mobile-resources.qrc) if(ANDROID) add_library(subsurface-mobile SHARED ${MOBILE_SRC} ${SUBSURFACE_PKG} ${SUBSURFACE_RESOURCES} ${MOBILE_RESOURCES}) -- cgit v1.2.3-70-g09d2