Modify some context checks
[openal-soft.git] / XCompile.txt
bloba6b06c757fb03d4998d48b7ee5bff06845fbc0e9
1 # Cross-compiling requires CMake 2.6 or newer. To cross-compile, first modify
2 # this file to set the proper settings and paths. Then use it from CMakeConf/
3 # like:
4 # cmake .. -DCMAKE_TOOLCHAIN_FILE=../XCompile.txt \
5 #          -DCMAKE_INSTALL_PREFIX=/usr/mingw32/mingw
6 # If you already have a toolchain file setup, you may use that instead of this
7 # file.
9 # the name of the target operating system
10 SET(CMAKE_SYSTEM_NAME Windows)
12 # which compilers to use for C and C++
13 SET(CMAKE_C_COMPILER mingw32-gcc)
14 SET(CMAKE_CXX_COMPILER mingw32-g++)
16 # here is the target environment located
17 SET(CMAKE_FIND_ROOT_PATH /usr/mingw32/mingw)
19 # adjust the default behaviour of the FIND_XXX() commands:
20 # search headers and libraries in the target environment, search 
21 # programs in the host environment
22 set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
23 set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
24 set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)