Prevent bogus addition of -rpath to libraries.

This commit is contained in:
Ryan C. Gordon 2010-02-02 23:04:28 -05:00
parent 12ad3828e7
commit a40d3e1e3b
1 changed files with 3 additions and 0 deletions

View File

@ -72,6 +72,9 @@ IF(CMAKE_COMPILER_IS_GNUCC)
ADD_DEFINITIONS(-fvisibility=hidden)
ENDIF(NOT OS2 AND NOT SOLARIS AND NOT WINDOWS)
ENDIF(PHYSFS_IS_GCC4)
# Don't use -rpath.
SET(CMAKE_SKIP_RPATH ON CACHE BOOL "Skip RPATH" FORCE)
ENDIF(CMAKE_COMPILER_IS_GNUCC)
IF(CMAKE_C_COMPILER_ID STREQUAL "SunPro")