mirror of
https://github.com/clangen/musikcube.git
synced 2024-12-25 15:14:35 +00:00
More variables.
This commit is contained in:
parent
66be8b6d4a
commit
748346c2e9
@ -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++)
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user