Skip to content

Commit

Permalink
cmake: Pacify warning about Policy CMP0042 not being set.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 10, 2017
1 parent 80c6c2f commit 73c6ceb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Expand Up @@ -1642,7 +1642,9 @@ set(_INSTALL_LIBS "SDL2main")

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}
Expand Down

0 comments on commit 73c6ceb

Please sign in to comment.