commit | 73c6cebb80544da7dcce183e014ba5d142e57e77 | [log] [tgz] |
---|---|---|
author | Ryan C. Gordon <icculus@icculus.org> | Wed Aug 09 22:43:16 2017 -0400 |
committer | Ryan C. Gordon <icculus@icculus.org> | Wed Aug 09 22:43:16 2017 -0400 |
tree | 222f4334f3965fc982b69bb8b4be26c5d5763eb0 | |
parent | 80c6c2fa761bd2733cc224a68bfb702fe0145afd [diff] |
cmake: Pacify warning about Policy CMP0042 not being set.
diff --git a/CMakeLists.txt b/CMakeLists.txt index 290cf98..7ce3769 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -1642,7 +1642,9 @@ if(SDL_SHARED) add_library(SDL2 SHARED ${SOURCE_FILES} ${VERSION_SOURCES}) - if(UNIX AND NOT ANDROID) + if(APPLE) + set_target_properties(SDL2 PROPERTIES MACOSX_RPATH 1) + elseif(UNIX AND NOT ANDROID) set_target_properties(SDL2 PROPERTIES VERSION ${LT_VERSION} SOVERSION ${LT_REVISION}