Fix CMake warning when compiling on OSX

dev-time-step
Piotr Dziwinski 2016-04-03 11:34:08 +12:00
parent 02633e32c3
commit b5438c3ae4
1 changed files with 2 additions and 0 deletions

View File

@ -94,6 +94,8 @@ elseif("${CMAKE_SYSTEM_NAME}" MATCHES "Darwin")
# Platform-dependent implementation of system.h
set(SYSTEM_CPP_MODULE "system_macosx.cpp")
# To avoid CMake warning
set(CMAKE_MACOSX_RPATH 1)
else()
message(STATUS "Build for other system")
set(PLATFORM_WINDOWS 0)