diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2011-01-27 22:58:34 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2011-01-27 22:58:34 +0000 |
commit | 800a2afbb3a46271334112b6c82e149d74dc648a (patch) | |
tree | b12a42c9c5d431a39a5dd2a41512ed0d9e1ef954 /llvm/lib/ExecutionEngine/Interpreter | |
parent | 3086022a3cb47fecf00cf8f24f7b139d9def7102 (diff) | |
download | bcm5719-llvm-800a2afbb3a46271334112b6c82e149d74dc648a.tar.gz bcm5719-llvm-800a2afbb3a46271334112b6c82e149d74dc648a.zip |
Use the paths to libffi's header and library even when no custom
location was stated with FFI_INCLUDE_DIR/FFI_LIBRARY_DIR.
llvm-svn: 124449
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/CMakeLists.txt | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/CMakeLists.txt b/llvm/lib/ExecutionEngine/Interpreter/CMakeLists.txt index 39df555d5e2..c8e4b6eedcd 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/CMakeLists.txt +++ b/llvm/lib/ExecutionEngine/Interpreter/CMakeLists.txt @@ -1,12 +1,16 @@ -# If the user required a custom path for ffi headers, use it on its -# abolute form (see config-ix.cmake): -if( FFI_INCLUDE_DIR ) +# 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 ) 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 ) +# Make sure that the path to libffi archive is on the command +# line. That path can be a linker's non-default path even when +# FFI_LIBRARY_DIR was not used, because cmake has its own paths for +# searching for libraries (CMAKE_SYSTEM_LIBRARY_PATH, for instance): +if( FFI_LIBRARY_PATH ) link_directories( ${FFI_LIBRARY_PATH} ) endif() |