Enable rpath on OS X when the CMake version supports it

This commit is contained in:
Jamie Snape
2016-09-14 13:00:51 -04:00
committed by GitHub
parent 79d24db60f
commit b0ace4509a

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 COMP0042 NEW)
endif(POLICY CMP0042)
ENDIF(COMMAND cmake_policy)