X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=CMakeLists.txt;h=3f074e840043bbdae9607828b1876b05c7579745;hp=9baf21a56f55972ecd1d7a3e6db934012f2ee2be;hb=c30f8eb1f1d360284b38016655cdb6a3e40db8ed;hpb=609835c5efa606b9eb63739d50c750dba47c1668 diff --git a/CMakeLists.txt b/CMakeLists.txt index 9baf21a5..3f074e84 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,6 +54,11 @@ endif(CMAKE_COMPILER_IS_GNUCXX) set(QT_MIN_VERSION "4.3.0") +if(APPLE) + set(CMAKE_OSX_ARCHITECTURES "i386;ppc") +# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.4") +endif(APPLE) + # Enable mostly b0rked stuff (new ChatView), do not enable this unless you know what you do... if(SPUTDEV) add_definitions(-DSPUTDEV) @@ -78,6 +83,10 @@ include_directories(${QT_INCLUDES}) # We need to create a version.gen # For this, we create our genversion binary and make sure it is run every time. add_executable(genversion ${CMAKE_SOURCE_DIR}/src/common/genversion.cpp) +#set_target_properties(genversion PROPERTIES +# LINK_FLAGS "-mmacosx-version-min=10.4") +# COMPILE_FLAGS "-mmacosx-version-min=10.4" + target_link_libraries(genversion ${QT_LIBRARIES} ${QT_CORE_LIB_DEPENDENCIES}) add_custom_target(genversion_run ALL ${CMAKE_BINARY_DIR}/genversion