Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update BBBToolchain.cmake for pkg-config to work properly #3

Open
me21 opened this issue Apr 1, 2022 · 0 comments
Open

Update BBBToolchain.cmake for pkg-config to work properly #3

me21 opened this issue Apr 1, 2022 · 0 comments

Comments

@me21
Copy link

me21 commented Apr 1, 2022

I added the following lines to BBBToolchain.cmake for pkg-config to work properly:

# adjust pkg-config
set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}\;${CMAKE_SYSROOT}/usr/lib/pkgconfig\;${CMAKE_SYSROOT}/usr/lib/arm-linux-gnueabihf/pkgconfig\;${CMAKE_SYSROOT}/usr/share/pkgconfig")
set(ENV{PKG_CONFIG_LIBDIR} "${CMAKE_SYSROOT}/usr/lib/arm-linux-gnueabihf/pkgconfig\;${CMAKE_SYSROOT}/usr/share/pkgconfig")
set(ENV{PKG_CONFIG_SYSROOT_DIR} ${CMAKE_SYSROOT})
# required on Windows - extra flag to pkg-config
if(WIN32)
	set(PKG_CONFIG_ARGN "--dont-define-prefix")
endif(WIN32)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant