cmake: Pacify warning about Policy CMP0042 not being set.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 08 Aug 2017 02:27:47 -0400
changeset 1547 ff5d87cb8eef
parent 1546 f42ba130a039
child 1548 576e95c756b5
cmake: Pacify warning about Policy CMP0042 not being set.
CMakeLists.txt
--- a/CMakeLists.txt	Sun Aug 06 15:59:46 2017 -0400
+++ b/CMakeLists.txt	Tue Aug 08 02:27:47 2017 -0400
@@ -170,6 +170,7 @@
 option(PHYSFS_BUILD_SHARED "Build shared library" TRUE)
 if(PHYSFS_BUILD_SHARED)
     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 SOVERSION ${PHYSFS_SOVERSION})
     if(WINRT)