X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=CMakeLists.txt;h=6f24251e27dc879d08cd7fe312f481a50e5af60a;hp=c93fa633476c5cfa42ef725628122516dc5e7e3d;hb=7ce0cf6c209c30b1b8702e6623cb6d6d6cad822d;hpb=6af53346e27b25280f9a0d9dcafc5fb59152b7f0 diff --git a/CMakeLists.txt b/CMakeLists.txt index c93fa633..6f24251e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,6 +38,10 @@ if(STATIC) set(CMAKE_BUILD_TYPE Release) endif(STATIC) +# RPATH needs to be set correctly +set(CMAKE_INSTALL_RPATH_USE_LINK_PATH 1) +set(CMAKE_BUILD_WITH_INSTALL_RPATH 1) + # Enable various flags on gcc if(CMAKE_COMPILER_IS_GNUCXX) include(CheckCXXCompilerFlag) @@ -61,6 +65,7 @@ if(APPLE AND DEPLOY) set(CMAKE_OSX_ARCHITECTURES "i386;ppc") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.4") set(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.4u.sdk/") + add_definitions(-DMAC_10_4_SDK) endif(APPLE AND DEPLOY) # Enable mostly b0rked stuff (new ChatView), do not enable this unless you know what you do...