diff -up phonon-4.8.3/cmake/FindPhononInternal.cmake.rex phonon-4.8.3/cmake/FindPhononInternal.cmake --- phonon-4.8.3/cmake/FindPhononInternal.cmake.rex 2016-04-01 11:11:25.077037757 -0500 +++ phonon-4.8.3/cmake/FindPhononInternal.cmake 2016-04-01 11:12:15.480620454 -0500 @@ -407,9 +407,9 @@ if (CMAKE_COMPILER_IS_GNUCXX) set(_source "#include \n int main()\n {\n #ifndef QT_VISIBILITY_AVAILABLE \n #error QT_VISIBILITY_AVAILABLE is not available\n #endif \n }\n") set(_source_file ${CMAKE_BINARY_DIR}/CMakeTmp/check_qt_visibility.cpp) file(WRITE "${_source_file}" "${_source}") - set(_include_dirs "-DINCLUDE_DIRECTORIES:STRING=${QT_INCLUDES}") + set(_include_dirs "${QT_INCLUDES}") - try_compile(_compile_result ${CMAKE_BINARY_DIR} ${_source_file} CMAKE_FLAGS "${CMAKE_CXX_FLAGS}" COMPILE_DEFINITIONS "${_include_dirs}" OUTPUT_VARIABLE _compile_output_var) + try_compile(_compile_result ${CMAKE_BINARY_DIR} ${_source_file} CMAKE_FLAGS "${CMAKE_CXX_FLAGS}" INCLUDE_DIRECTORIES "${_include_dirs}" LINK_LIBRARIES "${Qt5Core_LIBRARIES}" OUTPUT_VARIABLE _compile_output_var) if(NOT _compile_result) message("${_compile_output_var}")