Ticket #44236: patch-CmakeLists-for-OSX.patch

File patch-CmakeLists-for-OSX.patch, 3.2 KB (added by RJVB (René Bertin), 10 years ago)

don't build kcheckpass

  • CMakeLists.txt

    old new  
    194194
    195195
    196196include(ConfigureChecks.cmake)
    197 if(NOT WIN32)
     197if(NOT WIN32 AND NOT APPLE)
    198198  configure_file(config-unix.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-unix.h )
    199199  configure_file(config-X11.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-X11.h )
    200200  if(NOT CMAKE_INSTALL_PREFIX STREQUAL "/usr")
     
    221221
    222222# core apps
    223223if(NOT WIN32)
    224    macro_optional_add_subdirectory( kcheckpass )
    225    macro_optional_add_subdirectory( kwin )
    226    macro_optional_add_subdirectory( ksmserver )
    227 
    228    find_package(JPEG REQUIRED)
    229    find_package(PNG REQUIRED)
    230    macro_optional_add_subdirectory( ksplash )
     224   if(NOT APPLE)
     225      macro_optional_add_subdirectory( kcheckpass )
     226      macro_optional_add_subdirectory( kwin )
     227      macro_optional_add_subdirectory( ksmserver )
     228
     229      find_package(JPEG REQUIRED)
     230      find_package(PNG REQUIRED)
     231      macro_optional_add_subdirectory( ksplash )
    231232
    232    macro_optional_add_subdirectory( powerdevil )
     233      macro_optional_add_subdirectory( powerdevil )
     234   endif(NOT APPLE)
    233235   macro_optional_add_subdirectory( qguiplatformplugin_kde )
    234236   if (NOT CMAKE_SYSTEM_NAME MATCHES Darwin)
    235237      macro_optional_add_subdirectory( ksysguard )
     
    238240
    239241if(${KDE_PLATFORM_PROFILE} STREQUAL "Desktop")
    240242   macro_optional_add_subdirectory(kcontrol)
    241    macro_optional_add_subdirectory(klipper)
    242    macro_optional_add_subdirectory(kmenuedit)
    243    macro_optional_add_subdirectory(krunner)
    244    macro_optional_add_subdirectory(solid-actions-kcm)
    245    macro_optional_add_subdirectory(kstartupconfig)
    246    macro_optional_add_subdirectory(freespacenotifier)
    247    macro_optional_add_subdirectory(kscreensaver)
    248    macro_optional_add_subdirectory(kinfocenter)
     243   if(NOT APPLE)
     244      macro_optional_add_subdirectory(klipper)
     245      macro_optional_add_subdirectory(kmenuedit)
     246      macro_optional_add_subdirectory(krunner)
     247      macro_optional_add_subdirectory(solid-actions-kcm)
     248      macro_optional_add_subdirectory(kstartupconfig)
     249      macro_optional_add_subdirectory(freespacenotifier)
     250      macro_optional_add_subdirectory(kscreensaver)
     251      macro_optional_add_subdirectory(kinfocenter)
     252   endif(NOT APPLE)
    249253
    250254   # data
    251255   macro_optional_add_subdirectory(doc)
     
    254258      macro_optional_add_subdirectory(ktouchpadenabler)
    255259   endif (Q_WS_X11)
    256260
    257    if(NOT WIN32)
     261   if(NOT WIN32 AND NOT APPLE)
    258262      macro_optional_add_subdirectory(kcminit)
    259263      macro_optional_add_subdirectory(khotkeys)
    260264      macro_optional_add_subdirectory(kwrited)
     
    269273   endif(X11_Xau_FOUND AND X11_Xdmcp_FOUND)
    270274endif(${KDE_PLATFORM_PROFILE} STREQUAL "Desktop")
    271275
    272 if(NOT WIN32)
     276if(NOT WIN32 AND NOT APPLE)
    273277    # data
    274278    macro_optional_add_subdirectory(cursors)
    275279endif(NOT WIN32)
    276280
    277 macro_optional_add_subdirectory(plasma)
     281if(NOT APPLE)
     282   macro_optional_add_subdirectory(plasma)
     283endif(NOT APPLE)
    278284macro_optional_add_subdirectory(statusnotifierwatcher)
    279285macro_optional_add_subdirectory(kstyles)
    280286
    281287########### install files ###############
    282 if(NOT WIN32)
     288if(NOT WIN32 AND NOT APPLE)
    283289  install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/startkde DESTINATION ${BIN_INSTALL_DIR})
    284290endif(NOT WIN32)
    285291