Ver Fonte

cmake: Pacify warning about Policy CMP0042 not being set.

Ryan C. Gordon há 8 anos atrás
pai
commit
ca4d5be5f8
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      CMakeLists.txt

+ 1 - 0
CMakeLists.txt

@@ -170,6 +170,7 @@ endif()
 option(PHYSFS_BUILD_SHARED "Build shared library" TRUE)
 option(PHYSFS_BUILD_SHARED "Build shared library" TRUE)
 if(PHYSFS_BUILD_SHARED)
 if(PHYSFS_BUILD_SHARED)
     add_library(physfs SHARED ${PHYSFS_SRCS})
     add_library(physfs SHARED ${PHYSFS_SRCS})
+    set_target_properties(physfs PROPERTIES MACOSX_RPATH 1)
     set_target_properties(physfs PROPERTIES VERSION ${PHYSFS_VERSION})
     set_target_properties(physfs PROPERTIES VERSION ${PHYSFS_VERSION})
     set_target_properties(physfs PROPERTIES SOVERSION ${PHYSFS_SOVERSION})
     set_target_properties(physfs PROPERTIES SOVERSION ${PHYSFS_SOVERSION})
     if(WINRT)
     if(WINRT)