One last try to fix the OS X builder on Travis.

This commit is contained in:
Pietro Gagliardi 2016-06-05 16:45:18 -04:00
parent 0ffd8badb8
commit b779cddef4
1 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,10 @@ if(APPLE)
# the / is required by some older versions of OS X
set(CMAKE_INSTALL_RPATH "@executable_path/")
set(CMAKE_MACOSX_RPATH TRUE)
# older versions of cmake incorrectly treat Objective-C as C++
# see also https://cmake.org/pipermail/cmake-developers/2014-March/010072.html
list(APPEND CMAKE_C_SOURCE_FILE_EXTENSIONS m)
elseif(WIN32)
set(_OSNAME windows)