blob: 7456b3dbe905ad82b33e6caae82bb3d9e4a9d27d [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
Chris Bieneman05c279fc2016-11-17 04:36:50 +000013
14 DEPENDS
15 intrinsics_gen
Oscar Fuentesa229b3c2008-09-22 01:08:49 +000016 )
Oscar Fuentes64955952011-01-21 15:42:54 +000017
18if( LLVM_ENABLE_FFI )
Chris Bieneman6a1b54a2015-03-23 20:03:57 +000019 target_link_libraries( LLVMInterpreter PRIVATE ${FFI_LIBRARY_PATH} )
Oscar Fuentes64955952011-01-21 15:42:54 +000020endif()