Ticket #47125: pykde4-macports-adaptations-toolongfilename.diff

File pykde4-macports-adaptations-toolongfilename.diff, 810 bytes (added by RJVB (René Bertin), 10 years ago)
  • CMakeLists.txt

    old new  
    162162# pykdeconfig will not work.
    163163execute_process(COMMAND "${PYTHON_EXECUTABLE}" -c "import PyQt4.pyqtconfig"
    164164                RESULT_VARIABLE _exit_code OUTPUT_QUIET ERROR_QUIET)
    165 if (NOT _exit_code)
    166     python_install(${CMAKE_CURRENT_BINARY_DIR}/pykdeconfig.py ${PYTHON_SITE_PACKAGES_INSTALL_DIR}/PyKDE4)
    167 endif ()
     165# deactivate this because of cmake will try to create a recursive filename that gets way too long
     166#if (NOT _exit_code)
     167#    python_install(pykdeconfig.py ${PYTHON_SITE_PACKAGES_INSTALL_DIR}/PyKDE4)
     168#endif ()
    168169
    169170# Do not use --no-undefined for python modules.
    170171STRING(REPLACE -Wl,--no-undefined "" CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}")