Skip to content
Browse files

- CMake: More missing changes for OSX from the ones provided by jensv…

…erwiebe :)
  • Loading branch information...
1 parent c30bff4 commit b2078df851ea9445e70bdc288d96b2709cb7f012 @DarkTide DarkTide committed Mar 26, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 CMakeLists.txt
View
6 CMakeLists.txt
@@ -16,7 +16,7 @@ option(WITH_XML_LOADER "Build XML Loader" ON)
option(WITH_QT "Enable Qt Gui build" ON)
option(WITH_YAF_PY_BINDINGS "Enable the YafaRay Python bindings" ON)
option(WITH_YAF_RUBY_BINDINGS "Enable the YafaRay Ruby bindings" OFF)
-option(WITH_OSX_ADDON "Enable te use of blender's included python lib on OSX platforms" OFF)
+option(WITH_OSX_ADDON "Enable the use of blender's included python lib on OSX platforms" OFF)
option(BUILDRELEASE "Enable release mode building of YafaRay" OFF)
option(DEBUG_BUILD "Enable debug build mode" OFF)
option(EMBED_FONT_QT "Embed font for QT GUI (usefull for some buggy QT installations)" OFF)
@@ -198,6 +198,10 @@ if(NOT WIN32)
set(YAF_CXX_FLAGS_DEBUG "-ggdb")
endif(USER_DEBUG_OPTIMIZATION_FLAGS)
+ if(APPLE)
+ set(CMAKE_INSTALL_NAME_DIR @rpath)
+ endif(APPLE)
+
set(YAF_TARGET_TYPE LIBRARY)
else(NOT WIN32)

0 comments on commit b2078df

Please sign in to comment.
Something went wrong with that request. Please try again.