Ticket #46552: patch-cmake_PhononMacros.cmake.diff

File patch-cmake_PhononMacros.cmake.diff, 825 bytes (added by RJVB (René Bertin), 8 years ago)
  • PhononMacros.cmake

    old new  
    2525macro(phonon_add_declarative_plugin _target)
    2626    set(_srcs ${ARGN})
    2727    add_library(${_target} MODULE ${_global_add_executable_param} ${_srcs})
     28    if(APPLE)
     29      set_target_properties(${_target} PROPERTIES SUFFIX ".dylib")
     30    endif(APPLE)
    2831endmacro(phonon_add_declarative_plugin _target)
    2932
    3033macro(phonon_add_designer_plugin _target _qrc_file)
    3134    set(_srcs ${ARGN})
    3235    qt5_add_resources(_srcs ${_qrc_file})
    3336    add_library(${_target} MODULE ${_global_add_executable_param} ${_srcs})
     37    if(APPLE)
     38      set_target_properties(${_target} PROPERTIES SUFFIX ".dylib")
     39    endif(APPLE)
    3440endmacro(phonon_add_designer_plugin)
    3541
    3642macro (PHONON_UPDATE_ICONCACHE)