2011-01-27 22:58:34 +00:00
|
|
|
# Make sure that the path to libffi headers is on the command
|
|
|
|
# line. That path can be a compiler's non-default path even when
|
|
|
|
# FFI_INCLUDE_DIR was not used, because cmake has its own paths for
|
|
|
|
# searching for headers (CMAKE_SYSTEM_INCLUDE_PATH, for instance):
|
|
|
|
if( FFI_INCLUDE_PATH )
|
2011-01-21 15:42:54 +00:00
|
|
|
include_directories( ${FFI_INCLUDE_PATH} )
|
|
|
|
endif()
|
|
|
|
|
2009-06-23 17:57:35 +00:00
|
|
|
add_llvm_library(LLVMInterpreter
|
2008-09-22 01:08:49 +00:00
|
|
|
Execution.cpp
|
|
|
|
ExternalFunctions.cpp
|
|
|
|
Interpreter.cpp
|
|
|
|
)
|
2011-01-21 15:42:54 +00:00
|
|
|
|
|
|
|
if( LLVM_ENABLE_FFI )
|
2011-01-28 16:49:05 +00:00
|
|
|
target_link_libraries( LLVMInterpreter ${FFI_LIBRARY_PATH} )
|
2011-01-21 15:42:54 +00:00
|
|
|
endif()
|