Merged in hotfix/cmakeMac (pull request #23)

Fix issue 124
release/4.3a0
Zhaoyang Lv 2014-10-23 09:00:50 -04:00
commit af50ad0777
1 changed files with 6 additions and 0 deletions

View File

@ -2,6 +2,12 @@
project(GTSAM CXX C) project(GTSAM CXX C)
cmake_minimum_required(VERSION 2.6) 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 the version number for the library
set (GTSAM_VERSION_MAJOR 3) set (GTSAM_VERSION_MAJOR 3)
set (GTSAM_VERSION_MINOR 1) set (GTSAM_VERSION_MINOR 1)