diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2011-01-21 15:42:54 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2011-01-21 15:42:54 +0000 |
commit | 6495595382bd2776303a2ce8eabfc22082be8530 (patch) | |
tree | 9320a33349fd62a5e0050bcec2eb05b777dc7b9a /llvm/lib/ExecutionEngine/Interpreter | |
parent | 4bd612384a34f766169f4457a3f8f72b7480b6a7 (diff) | |
download | bcm5719-llvm-6495595382bd2776303a2ce8eabfc22082be8530.tar.gz bcm5719-llvm-6495595382bd2776303a2ce8eabfc22082be8530.zip |
Handles libffi on the CMake build.
Patch by arrowdodger!
llvm-svn: 123976
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/CMakeLists.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/CMakeLists.txt b/llvm/lib/ExecutionEngine/Interpreter/CMakeLists.txt index dff97fa26e8..39df555d5e2 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/CMakeLists.txt +++ b/llvm/lib/ExecutionEngine/Interpreter/CMakeLists.txt @@ -1,5 +1,21 @@ +# If the user required a custom path for ffi headers, use it on its +# abolute form (see config-ix.cmake): +if( FFI_INCLUDE_DIR ) + include_directories( ${FFI_INCLUDE_PATH} ) +endif() + +# If the user required a custom path for libffi, use it on its abolute +# form (see config-ix.cmake): +if( FFI_LIBRARY_DIR ) + link_directories( ${FFI_LIBRARY_PATH} ) +endif() + add_llvm_library(LLVMInterpreter Execution.cpp ExternalFunctions.cpp Interpreter.cpp ) + +if( LLVM_ENABLE_FFI ) + target_link_libraries( LLVMInterpreter ffi ) +endif() |