Skip to content

Commit aad6b87

Browse files
authored
chore: simplify SDL2 guard in examples/CMakeLists.txt (#8)
1 parent 909ae80 commit aad6b87

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)