diff options
| author | Rob Loach <[email protected]> | 2024-03-07 06:11:46 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-03-07 12:11:46 +0100 |
| commit | fccdfa7926260339a66a5590c0246f4c158c5970 (patch) | |
| tree | eac4b8ae70f0032d9d58a225e360a5d9618f3231 | |
| parent | c1c9b69290be83c7f6400fe4bd0dd7f0e1c20d98 (diff) | |
| download | raylib-fccdfa7926260339a66a5590c0246f4c158c5970.tar.gz raylib-fccdfa7926260339a66a5590c0246f4c158c5970.zip | |
cmake: For SDL build, link the glfw dependency (#3860)
| -rw-r--r-- | examples/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index c5fa659e..a9dc2c88 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -145,5 +145,11 @@ foreach (example_source ${example_sources}) endif () endforeach () +# For SDL, have rlgl_standalone link the glfw dependency. +if ("${PLATFORM}" STREQUAL "SDL") + find_package(glfw3 3.3 REQUIRED) + target_link_libraries(rlgl_standalone glfw) +endif() + # Copy all of the resource files to the destination file(COPY ${example_resources} DESTINATION "resources/") |
