diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2019-12-28 08:46:45 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-28 08:46:45 -0800 |
commit | cb3561ae85d8297db87c058d36fcb6f03604f10c (patch) | |
tree | 1a863c4b2c1008219d8f25de8eb07523bac26aa0 /tests/CMakeLists.txt | |
parent | e80c27a2bd39ba4b34ad2c90c34251e3967a4e63 (diff) | |
download | subsurface-cb3561ae85d8297db87c058d36fcb6f03604f10c.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r-- | tests/CMakeLists.txt | 9 |
1 files changed, 4 insertions, 5 deletions
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 $<TARGET_FILE:TestQML> -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 |