From e1d3189492548e68201ff33305119981e8edf844 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Sat, 7 Jun 2014 10:49:49 +0200 Subject: [PATCH] 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). --- development/cmake/ConfigureChecks.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/development/cmake/ConfigureChecks.cmake b/development/cmake/ConfigureChecks.cmake index 035a62b0f6..72171723e9 100644 --- a/development/cmake/ConfigureChecks.cmake +++ b/development/cmake/ConfigureChecks.cmake @@ -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(