mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
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:
parent
c1ac09e11f
commit
e1d3189492
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user