xbps-src: make cmake find/use the wx-config wrapper

This commit is contained in:
newbluemoon 2018-01-07 18:36:08 +01:00 committed by Jürgen Buchmüller
parent 625e70ddd0
commit 67c20224e0
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@ SET(CMAKE_FIND_ROOT_PATH ${XBPS_CROSS_BASE})
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
SET(wxWidgets_CONFIG_EXECUTABLE ${XBPS_WRAPPERDIR}/wx-config)
_EOF
cmake_args+=" -DCMAKE_TOOLCHAIN_FILE=cross_${XBPS_CROSS_TRIPLET}.cmake"
fi