DEADSOFTWARE

portability: avoid errors on some compilers
[flatwaifu.git] / src / cmake / kos32-tcc.cmake
1 # Usage:
2 # cmake -DCMAKE_TOOLCHAIN_FILE=path/to/kos32-tcc.cmake ..
4 set(CMAKE_SYSTEM_NAME KolibriOS)
5 set(TOOLCHAIN_PREFIX kos32)
7 # cross compilers to use for C, C++ and Fortran
8 set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-tcc)
10 # target environment on the build host system
11 #set(CMAKE_FIND_ROOT_PATH /usr/${TOOLCHAIN_PREFIX}/sys-root/kos32)
13 # modify default behavior of FIND_XXX() commands
14 set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
15 set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
16 set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
17 set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)