mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
16 lines
525 B
CMake
16 lines
525 B
CMake
|
|
# this one is important
|
||
|
|
set(CMAKE_SYSTEM_NAME Linux)
|
||
|
|
set(CMAKE_PLATFORM Linux)
|
||
|
|
|
||
|
|
# specify the cross compiler
|
||
|
|
set(CMAKE_C_COMPILER $ENV{CC})
|
||
|
|
set(CMAKE_CXX_COMPILER $ENV{CXX})
|
||
|
|
|
||
|
|
# where is the target environment
|
||
|
|
set(CMAKE_FIND_ROOT_PATH $ENV{PREFIX} $ENV{BUILD_PREFIX}/$ENV{HOST}/sysroot)
|
||
|
|
|
||
|
|
# search for programs in the build host directories
|
||
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||
|
|
# for libraries and headers in the target directories
|
||
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|