cmake: Pacify warning about Policy CMP0042 not being set.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 09 Aug 2017 22:43:16 -0400
changeset 1121252e36516928e
parent 11211 467898375b76
child 11213 40e069d59604
cmake: Pacify warning about Policy CMP0042 not being set.
CMakeLists.txt
     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}