CMakeLists.txt
changeset 11212 52e36516928e
parent 11210 c92070a96da5
child 11231 5235df1ce071
     1.1 --- a/CMakeLists.txt	Wed Aug 09 22:34:45 2017 -0400
     1.2 +++ b/CMakeLists.txt	Wed Aug 09 22:43:16 2017 -0400
     1.3 @@ -1642,7 +1642,9 @@
     1.4  
     1.5  if(SDL_SHARED)
     1.6    add_library(SDL2 SHARED ${SOURCE_FILES} ${VERSION_SOURCES})
     1.7 -  if(UNIX AND NOT ANDROID)
     1.8 +  if(APPLE)
     1.9 +    set_target_properties(SDL2 PROPERTIES MACOSX_RPATH 1)
    1.10 +  elseif(UNIX AND NOT ANDROID)
    1.11      set_target_properties(SDL2 PROPERTIES
    1.12        VERSION ${LT_VERSION}
    1.13        SOVERSION ${LT_REVISION}