More variables.

This commit is contained in:
casey langen 2022-02-17 10:45:15 -08:00
parent 66be8b6d4a
commit 748346c2e9
2 changed files with 5 additions and 3 deletions

View File

@ -2,9 +2,11 @@ set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR arm)
set(CROSS_COMPILE_SYSROOT /build/rpi/sysroot)
set(CROSS_COMPILE_PKG_CONFIG_PATH "${CROSS_COMPILE_SYSROOT}/usr/lib/arm-linux-gnueabihf/pkgconfig")
set(CROSS_COMPILE_STAGING /build/rpi/staging)
set(CMAKE_SYSROOT ${CROSS_COMPILE_SYSROOT})
set(CMAKE_STAGING_PREFIX /build/rpi/staging)
set(CMAKE_STAGING_PREFIX ${CROSS_COMPILE_STAGING})
set(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc)
set(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++)

View File

@ -29,8 +29,8 @@ include(FindVendorLibrary)
if (CROSS_COMPILE_SYSROOT)
message(STATUS "[cross-compile] enabled, rooted at: ${CROSS_COMPILE_SYSROOT}")
set(CMAKE_FIND_ROOT_PATH /build/rpi/sysroot /build/musikcube/vendor)
set(ENV{PKG_CONFIG_PATH} /build/rpi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig)
set(CMAKE_FIND_ROOT_PATH ${CROSS_COMPILE_SYSROOT} ${musikcube_SOURCE_DIR}/vendor)
set(ENV{PKG_CONFIG_PATH} ${CROSS_COMPILE_PKG_CONFIG_PATH})
else()
message(STATUS "[cross-compile] not enabled!")
endif()