Cmake build: Select full path to library

Testing for QT_USES_X11 links ok now also if the the qt-libraries
are on some non-conform place. (Like self compiled but not installed).
This commit is contained in:
Kornel Benko 2014-06-07 10:49:49 +02:00
parent c1ac09e11f
commit e1d3189492

View File

@ -114,8 +114,8 @@ SIZEOF_WCHAR_T_IS_4)
if (Qt5X11Extras_FOUND)
get_target_property(_x11extra_prop Qt5::X11Extras IMPORTED_CONFIGURATIONS)
get_target_property(_x11extra_lib Qt5::X11Extras IMPORTED_SONAME_${_x11extra_prop})
set(CMAKE_REQUIRED_LIBRARIES ${_x11extra_lib})
get_target_property(_x11extra_link_libraries Qt5::X11Extras IMPORTED_LOCATION_${_x11extra_prop})
set(CMAKE_REQUIRED_LIBRARIES ${_x11extra_link_libraries})
set(CMAKE_REQUIRED_INCLUDES ${Qt5X11Extras_INCLUDE_DIRS})
set(CMAKE_REQUIRED_FLAGS ${Qt5X11Extras_EXECUTABLE_COMPILE_FLAGS})
check_cxx_source_compiles(