Skip to content

Commit 6e4b036

Browse files
committed
fixed cmake
1 parent c7511dc commit 6e4b036

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/examples/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ if(POLICY CMP0072)
1616
endif()
1717
set(OpenGL_GL_PREFERENCE GLVND)
1818

19+
1920
find_package(OpenGL REQUIRED)
2021

22+
# Add SDL2 before pythonic to ensure SDL2::SDL2 target is available if needed
23+
find_package(SDL2 REQUIRED)
24+
2125
# Find the Pythonic library (header-only)
2226
# FAILS if not installed
2327
find_package(pythonic REQUIRED)

0 commit comments

Comments
 (0)