build-style/cmake.sh: $CC and $CXX are good enough for cross-compiling.
This commit is contained in:
parent
d0bfcea683
commit
bcfbba40f4
|
@ -11,8 +11,8 @@ do_configure() {
|
||||||
SET(CMAKE_SYSTEM_NAME Linux)
|
SET(CMAKE_SYSTEM_NAME Linux)
|
||||||
SET(CMAKE_SYSTEM_VERSION 1)
|
SET(CMAKE_SYSTEM_VERSION 1)
|
||||||
|
|
||||||
SET(CMAKE_C_COMPILER ${XBPS_CROSS_TRIPLET}-gcc)
|
SET(CMAKE_C_COMPILER ${CC})
|
||||||
SET(CMAKE_CXX_COMPILER ${XBPS_CROSS_TRIPLET}-g++)
|
SET(CMAKE_CXX_COMPILER ${CXX})
|
||||||
SET(CMAKE_CROSSCOMPILING TRUE)
|
SET(CMAKE_CROSSCOMPILING TRUE)
|
||||||
|
|
||||||
SET(CMAKE_FIND_ROOT_PATH ${XBPS_CROSS_BASE})
|
SET(CMAKE_FIND_ROOT_PATH ${XBPS_CROSS_BASE})
|
||||||
|
|
Loading…
Reference in New Issue