Merge pull request #786 from jamiesnape/policy-cmp0042-macosx-rpath

Enable rpath on OS X when the CMake version supports it
This commit is contained in:
erwincoumans
2016-09-21 08:15:42 -07:00
committed by GitHub

View File

@@ -9,6 +9,10 @@ SET(BULLET_VERSION 2.85)
IF(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
if(POLICY CMP0042)
# Enable MACOSX_RPATH by default.
cmake_policy(SET CMP0042 NEW)
endif(POLICY CMP0042)
ENDIF(COMMAND cmake_policy)