diff --git a/CMakeLists.txt b/CMakeLists.txt index 6fcce54b6..bc7d8aecd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,12 @@ project(GTSAM CXX C) cmake_minimum_required(VERSION 2.6) +# new feature to Cmake Version > 2.8.12 +# Mac ONLY. Define Relative Path on Mac OS +if(NOT DEFINED CMAKE_MACOSX_RPATH) + set(CMAKE_MACOSX_RPATH 0) +endif() + # Set the version number for the library set (GTSAM_VERSION_MAJOR 3) set (GTSAM_VERSION_MINOR 1)