FindGTK2: #12049 fix detection of header files on multiarch systems
This commit is contained in:
parent
b74267745b
commit
06638039aa
|
@ -190,8 +190,15 @@ function(_GTK2_FIND_INCLUDE_DIR _var _hdr)
|
||||||
"include suffixes = ${_suffixes}")
|
"include suffixes = ${_suffixes}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(CMAKE_LIBRARY_ARCHITECTURE)
|
||||||
|
set(_gtk2_arch_dir /usr/lib/${CMAKE_LIBRARY_ARCHITECTURE})
|
||||||
|
if(GTK2_DEBUG)
|
||||||
|
message(STATUS "Adding ${_gtk2_arch_dir} to search path for multiarch support")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
find_path(${_var} ${_hdr}
|
find_path(${_var} ${_hdr}
|
||||||
PATHS
|
PATHS
|
||||||
|
${_gtk2_arch_dir}
|
||||||
/usr/local/lib64
|
/usr/local/lib64
|
||||||
/usr/local/lib
|
/usr/local/lib
|
||||||
/usr/lib64
|
/usr/lib64
|
||||||
|
|
Loading…
Reference in New Issue