From 47e9a771ba8fef590b240923e68edf6402242354 Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Sun, 3 Mar 2019 22:19:32 +0100 Subject: CMake: do not expand variables in if-expressions CMake will do the expansion internally itself. Not doing it here is not only less code, it also makes sure one does not accidentially get a double expansion. Signed-off-by: Rolf Eike Beer --- qt-models/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-models/CMakeLists.txt') diff --git a/qt-models/CMakeLists.txt b/qt-models/CMakeLists.txt index 896ee9930..eb754d7f1 100644 --- a/qt-models/CMakeLists.txt +++ b/qt-models/CMakeLists.txt @@ -35,11 +35,11 @@ set(SUBSURFACE_MOBILE_MODELS_LIB_SRCS gpslistmodel.cpp ) -if(${SUBSURFACE_TARGET_EXECUTABLE} MATCHES "DesktopExecutable") +if (SUBSURFACE_TARGET_EXECUTABLE MATCHES "DesktopExecutable") add_library(subsurface_models_desktop STATIC ${SUBSURFACE_GENERIC_MODELS_LIB_SRCS} ${SUBSURFACE_DESKTOP_MODELS_LIB_SRCS}) target_link_libraries(subsurface_models_desktop ${QT_LIBRARIES}) -elseif(${SUBSURFACE_TARGET_EXECUTABLE} MATCHES "MobileExecutable") +elseif (SUBSURFACE_TARGET_EXECUTABLE MATCHES "MobileExecutable") add_library(subsurface_models_mobile STATIC ${SUBSURFACE_GENERIC_MODELS_LIB_SRCS} ${SUBSURFACE_MOBILE_MODELS_LIB_SRCS}) target_link_libraries(subsurface_models_mobile ${QT_LIBRARIES}) -- cgit v1.2.3-70-g09d2