diff options
author | Philip Lowman <philip@yhbt.com> | 2012-10-03 08:52:35 (GMT) |
---|---|---|
committer | Philip Lowman <philip@yhbt.com> | 2012-10-03 08:52:35 (GMT) |
commit | 06638039aaa01c5431e6b4f0c153390afbe82c46 (patch) | |
tree | c75e7454e7e7d62b636b6f969ac1ee57c833a2af /Modules | |
parent | b74267745b012e1f3769ea5a7802c79f5480852b (diff) | |
download | CMake-06638039aaa01c5431e6b4f0c153390afbe82c46.zip CMake-06638039aaa01c5431e6b4f0c153390afbe82c46.tar.gz CMake-06638039aaa01c5431e6b4f0c153390afbe82c46.tar.bz2 |
FindGTK2: #12049 fix detection of header files on multiarch systems
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindGTK2.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/FindGTK2.cmake b/Modules/FindGTK2.cmake index 2373422..119ad0e 100644 --- a/Modules/FindGTK2.cmake +++ b/Modules/FindGTK2.cmake @@ -190,8 +190,15 @@ function(_GTK2_FIND_INCLUDE_DIR _var _hdr) "include suffixes = ${_suffixes}") 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} PATHS + ${_gtk2_arch_dir} /usr/local/lib64 /usr/local/lib /usr/lib64 |