Skip to content

Commit 1fd0251

Browse files
PABannierclaude
andcommitted
chore: simplify SDL2 guard in examples/CMakeLists.txt
The EXISTS check for third-party/CMakeLists.txt was always true (the file is tracked in git), so it added noise without guarding anything. Drop it and trim the skip message to match. Follow-up cleanup to the imgui FetchContent fix from 6fd1ea0 / #6. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 909ae80 commit 1fd0251

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ target_link_libraries(sam3_profile_edgetam PRIVATE sam3)
1313
# SDL2 + ImGui are optional — build only if SDL2 is found.
1414
find_package(SDL2 QUIET)
1515

16-
if(SDL2_FOUND AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/third-party/CMakeLists.txt")
16+
if(SDL2_FOUND)
1717
add_subdirectory(third-party)
1818

1919
add_executable(sam3_image main_image.cpp)
@@ -22,5 +22,5 @@ if(SDL2_FOUND AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/third-party/CMakeLists.txt
2222
add_executable(sam3_video main_video.cpp)
2323
target_link_libraries(sam3_video PRIVATE sam3 imgui-sdl2 SDL2::SDL2)
2424
else()
25-
message(STATUS "SDL2 not found or third-party/ missing — skipping GUI examples")
25+
message(STATUS "SDL2 not found — skipping GUI examples")
2626
endif()

0 commit comments

Comments
 (0)