pkgconf: added option CACHE PATH for PKG_CONFIG_EXECUTABLE in pkgconf.cmake so that pkgconf can be found through cmake at first run

This commit is contained in:
Christian Frisson 2015-09-29 14:41:08 +02:00
parent 6a658bf6ee
commit 5a81e60e04
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ define $(PKG)_BUILD
chmod 0755 '$(PREFIX)/bin/$(TARGET)-pkg-config'
# create cmake file
echo 'set(PKG_CONFIG_EXECUTABLE $(PREFIX)/bin/$(TARGET)-pkg-config)' \
echo 'set(PKG_CONFIG_EXECUTABLE $(PREFIX)/bin/$(TARGET)-pkg-config CACHE PATH "pkg-config executable")' \
> '$(CMAKE_TOOLCHAIN_DIR)/pkgconf.cmake'
endef