llvm-mirror/cmake/modules/CrossCompileLLVM.cmake
Oscar Fuentes bb9c221f2a CMake: Support for cross-compiling. For now, requires a previously
built native tblgen which is passed to cmake in the variable
LLVM_TABLEGEN.

See

http://www.cmake.org/Wiki/CmakeMingw

for a quick example on how to cross-compile with CMake.

llvm-svn: 58939
2008-11-09 18:53:19 +00:00

7 lines
292 B
CMake

# TODO: Build a native tblgen when cross-compiling, if the user
# didn't set LLVM_TABLEGEN. Then, remove this check:
if( CMAKE_CROSSCOMPILING AND ${LLVM_TABLEGEN} STREQUAL "tblgen" )
message(FATAL_ERROR
"Set LLVM_TABLEGEN to the full route to a native tblgen executable")
endif()