include /usr/lib in link directories when cross compiling

- was necessary on one of our machines, otherwise libglib-2.0 and others were
  not found during linking
pull/23/head
Marcus Georgi 2017-06-02 11:57:17 +02:00
parent 7c40bad040
commit a5df534400
1 changed files with 1 additions and 0 deletions

View File

@ -83,6 +83,7 @@ include_directories($ENV{SYSROOT}/usr/include $ENV{SYSROOT}/usr/include/${TOOLCH
# Workaround as some library are installed in $ENV{SYSROOT}/lib/${TOOLCHAIN_MACHINE}
# such as libpcre.so (required by glib-2.0)
link_directories($ENV{SYSROOT}/lib/${TOOLCHAIN_MACHINE})
link_directories($ENV{SYSROOT}/usr/lib/${TOOLCHAIN_MACHINE})
# search for programs in the build host directories
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)