blob: d331f830b62eee906217eb849317d708fd00197b [file] [log] [blame]
Oscar Fuentes800a2af2011-01-27 22:58:34 +00001# Make sure that the path to libffi headers is on the command
2# line. That path can be a compiler's non-default path even when
3# FFI_INCLUDE_DIR was not used, because cmake has its own paths for
4# searching for headers (CMAKE_SYSTEM_INCLUDE_PATH, for instance):
5if( FFI_INCLUDE_PATH )
Oscar Fuentes64955952011-01-21 15:42:54 +00006 include_directories( ${FFI_INCLUDE_PATH} )
7endif()
8
Douglas Gregor85fedbe2009-06-23 17:57:35 +00009add_llvm_library(LLVMInterpreter
Oscar Fuentesa229b3c2008-09-22 01:08:49 +000010 Execution.cpp
11 ExternalFunctions.cpp
12 Interpreter.cpp
13 )
Oscar Fuentes64955952011-01-21 15:42:54 +000014
15if( LLVM_ENABLE_FFI )
Oscar Fuentese789bdb2011-01-28 16:49:05 +000016 target_link_libraries( LLVMInterpreter ${FFI_LIBRARY_PATH} )
Oscar Fuentes64955952011-01-21 15:42:54 +000017endif()