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>
This commit is contained in:
1 file changed
-2
@@ -28,7 +28,6 @@ if(BUILD_TESTING)
|
|||||||
if(MIGRATION_TEST_SOURCES)
|
if(MIGRATION_TEST_SOURCES)
|
||||||
set(EXISTING_SOURCES ${MIGRATION_TEST_SOURCES})
|
set(EXISTING_SOURCES ${MIGRATION_TEST_SOURCES})
|
||||||
|
|
||||||
if(EXISTING_SOURCES)
|
|
||||||
add_executable(migration_tests ${EXISTING_SOURCES})
|
add_executable(migration_tests ${EXISTING_SOURCES})
|
||||||
|
|
||||||
target_compile_features(migration_tests PRIVATE cxx_std_23)
|
target_compile_features(migration_tests PRIVATE cxx_std_23)
|
||||||
@@ -70,4 +69,3 @@ if(BUILD_TESTING)
|
|||||||
else()
|
else()
|
||||||
message(WARNING "No migration test sources found in ${CMAKE_CURRENT_SOURCE_DIR}")
|
message(WARNING "No migration test sources found in ${CMAKE_CURRENT_SOURCE_DIR}")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
|
||||||
Reference in new issue
Block a user