mirror of https://github.com/labapart/gattlib
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 linkingpull/23/head
parent
7c40bad040
commit
a5df534400
|
@ -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}
|
# Workaround as some library are installed in $ENV{SYSROOT}/lib/${TOOLCHAIN_MACHINE}
|
||||||
# such as libpcre.so (required by glib-2.0)
|
# such as libpcre.so (required by glib-2.0)
|
||||||
link_directories($ENV{SYSROOT}/lib/${TOOLCHAIN_MACHINE})
|
link_directories($ENV{SYSROOT}/lib/${TOOLCHAIN_MACHINE})
|
||||||
|
link_directories($ENV{SYSROOT}/usr/lib/${TOOLCHAIN_MACHINE})
|
||||||
|
|
||||||
# search for programs in the build host directories
|
# search for programs in the build host directories
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||||
|
|
Loading…
Reference in New Issue