File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,8 +63,9 @@ add_custom_command(TARGET SimpleRoom POST_BUILD
6363)
6464
6565# Copy SDL3 shared library to SimpleRoom output directory
66- # On Unix, we also need to create the SONAME symlink (libSDL3.so.0 -> libSDL3.so.0.x.x)
67- if (UNIX )
66+ # On Linux, we also need to create the SONAME symlink (libSDL3.so.0 -> libSDL3.so.0.x.x)
67+ # macOS doesn't need SONAME symlink (dylib versioning works differently)
68+ if (UNIX AND NOT APPLE )
6869 add_custom_command (TARGET SimpleRoom POST_BUILD
6970 COMMAND ${CMAKE_COMMAND} -E copy_if_different
7071 "$<TARGET_FILE :SDL3 ::SDL3 >"
@@ -76,6 +77,7 @@ if(UNIX)
7677 VERBATIM
7778 )
7879else ()
80+ # Windows and macOS: just copy the library file
7981 add_custom_command (TARGET SimpleRoom POST_BUILD
8082 COMMAND ${CMAKE_COMMAND} -E copy_if_different
8183 "$<TARGET_FILE :SDL3 ::SDL3 >"
You can’t perform that action at this time.
0 commit comments