From cb3561ae85d8297db87c058d36fcb6f03604f10c Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 28 Dec 2019 08:46:45 -0800 Subject: tests: fix cmake syntax confusion You cannot have a conditional in the middle of a list. I should have caught this in review. Signed-off-by: Dirk Hohndel --- tests/CMakeLists.txt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 1ae98574f..67ee08193 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -138,6 +138,9 @@ TEST(TestQPrefUnits testqPrefUnits.cpp) TEST(TestQPrefUpdateManager testqPrefUpdateManager.cpp) add_test(NAME TestQML COMMAND $ -input ${SUBSURFACE_SOURCE}/tests) +if (SUBSURFACE_TARGET_EXECUTABLE MATCHES "MobileExecutable") + set(TEST_PLANNER_SHARDE TestPlannerShared) +endif() add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} DEPENDS @@ -153,11 +156,7 @@ add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} TestPicture TestMerge TestTagList - -if (SUBSURFACE_TARGET_EXECUTABLE MATCHES "MobileExecutable") - TestPlannerShared -endif() - + ${TEST_PLANNER_SHARED} TestQPrefCloudStorage TestQPrefDisplay TestQPrefDiveComputer -- cgit v1.2.3-70-g09d2