summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongbin Zheng <etherzhhb@gmail.com>2012-03-26 15:16:29 +0000
committerHongbin Zheng <etherzhhb@gmail.com>2012-03-26 15:16:29 +0000
commitb85c0b3e0c245a2930c8040a152a943f87e3e7b8 (patch)
tree5d5c011a51f5241266bc28b0a782e894dcc16e5d
parent3e6719c133f87f1c3d8d9085181fed85d33fd93d (diff)
downloadbcm5719-llvm-b85c0b3e0c245a2930c8040a152a943f87e3e7b8.tar.gz
bcm5719-llvm-b85c0b3e0c245a2930c8040a152a943f87e3e7b8.zip
Out-of-tree build: Load the configuration of the installed llvm.
llvm-svn: 153439
-rw-r--r--polly/CMakeLists.txt19
1 files changed, 2 insertions, 17 deletions
diff --git a/polly/CMakeLists.txt b/polly/CMakeLists.txt
index 97f254383b8..4e87717f69f 100644
--- a/polly/CMakeLists.txt
+++ b/polly/CMakeLists.txt
@@ -20,23 +20,8 @@ if (NOT DEFINED LLVM_MAIN_SRC_DIR)
# Add the llvm header path.
include_directories(${LLVM_INSTALL_ROOT}/include/)
- # Get the system librarys that will link into LLVM.
- function(get_system_libs return_var)
- # Returns in `return_var' a list of system libraries used by LLVM.
- if( NOT MSVC )
- if( MINGW )
- set(system_libs ${system_libs} imagehlp psapi)
- elseif( CMAKE_HOST_UNIX )
- if( HAVE_LIBDL )
- set(system_libs ${system_libs} ${CMAKE_DL_LIBS})
- endif()
- if( LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD )
- set(system_libs ${system_libs} pthread)
- endif()
- endif( MINGW )
- endif( NOT MSVC )
- set(${return_var} ${system_libs} PARENT_SCOPE)
- endfunction(get_system_libs)
+ # Load the configuration of the installed llvm.
+ include(${LLVM_INSTALL_ROOT}/share/llvm/cmake/LLVMConfig.cmake)
# Now set the header paths.
execute_process(COMMAND "${LLVM_INSTALL_ROOT}/bin/llvm-config" --includedir
OpenPOWER on IntegriCloud