From 2a127de21f17c4bd892c6fff91b55f3db432b81d Mon Sep 17 00:00:00 2001 From: twi-devel Date: Wed, 19 Aug 2026 15:23:17 +0200 Subject: [PATCH] Fix CMakeLists.txt syntax error - properly nested if statements - Fixed malformed if/endif structure - Removed duplicate if(EXISTING_SOURCES) check Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- qt6-after/qt6-migrated-benchmark/tests/CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/qt6-after/qt6-migrated-benchmark/tests/CMakeLists.txt b/qt6-after/qt6-migrated-benchmark/tests/CMakeLists.txt index 707e106d7..ae07819da 100644 --- a/qt6-after/qt6-migrated-benchmark/tests/CMakeLists.txt +++ b/qt6-after/qt6-migrated-benchmark/tests/CMakeLists.txt @@ -28,7 +28,6 @@ if(BUILD_TESTING) if(MIGRATION_TEST_SOURCES) set(EXISTING_SOURCES ${MIGRATION_TEST_SOURCES}) - if(EXISTING_SOURCES) add_executable(migration_tests ${EXISTING_SOURCES}) target_compile_features(migration_tests PRIVATE cxx_std_23) @@ -67,7 +66,6 @@ if(BUILD_TESTING) gtest_discover_tests(migration_tests) message(STATUS "Migration tests enabled: ${EXISTING_SOURCES}") - else() - message(WARNING "No migration test sources found in ${CMAKE_CURRENT_SOURCE_DIR}") - endif() +else() + message(WARNING "No migration test sources found in ${CMAKE_CURRENT_SOURCE_DIR}") endif() \ No newline at end of file