We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 909ae80 commit aad6b87Copy full SHA for aad6b87
1 file changed
examples/CMakeLists.txt
@@ -13,7 +13,7 @@ target_link_libraries(sam3_profile_edgetam PRIVATE sam3)
13
# SDL2 + ImGui are optional — build only if SDL2 is found.
14
find_package(SDL2 QUIET)
15
16
-if(SDL2_FOUND AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/third-party/CMakeLists.txt")
+if(SDL2_FOUND)
17
add_subdirectory(third-party)
18
19
add_executable(sam3_image main_image.cpp)
@@ -22,5 +22,5 @@ if(SDL2_FOUND AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/third-party/CMakeLists.txt
22
add_executable(sam3_video main_video.cpp)
23
target_link_libraries(sam3_video PRIVATE sam3 imgui-sdl2 SDL2::SDL2)
24
else()
25
- message(STATUS "SDL2 not found or third-party/ missing — skipping GUI examples")
+ message(STATUS "SDL2 not found — skipping GUI examples")
26
endif()
0 commit comments