From 11c9581a4a381cf91d76eb918e5c8520dc5e7258 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Fri, 22 May 2015 13:06:53 +0300 Subject: llvm copy from gentoo repo --- .../llvm/files/llvm-3.3-cmake-modulepath.patch | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 sys-devel/llvm/files/llvm-3.3-cmake-modulepath.patch (limited to 'sys-devel/llvm/files/llvm-3.3-cmake-modulepath.patch') diff --git a/sys-devel/llvm/files/llvm-3.3-cmake-modulepath.patch b/sys-devel/llvm/files/llvm-3.3-cmake-modulepath.patch new file mode 100644 index 0000000..754ae46 --- /dev/null +++ b/sys-devel/llvm/files/llvm-3.3-cmake-modulepath.patch @@ -0,0 +1,24 @@ +--- cmake/modules/LLVMConfig.cmake.in.old 2013-12-30 14:40:54.888983600 +0100 ++++ cmake/modules/LLVMConfig.cmake.in 2013-12-30 14:44:15.448970509 +0100 +@@ -39,16 +39,10 @@ + set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib) + set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS") + +-# We try to include using the current setting of CMAKE_MODULE_PATH, +-# which suppossedly was filled by the user with the directory where +-# this file was installed: +-include( LLVM-Config OPTIONAL RESULT_VARIABLE LLVMCONFIG_INCLUDED ) +- +-# If failed, we assume that this is an un-installed build: +-if( NOT LLVMCONFIG_INCLUDED ) +- set(CMAKE_MODULE_PATH ++# For some reasons without it it fails on Gentoo, see bug #496480 ++set(CMAKE_MODULE_PATH + ${CMAKE_MODULE_PATH} +- "@LLVM_SOURCE_DIR@/cmake/modules") +- include( LLVM-Config ) +-endif() ++ "@LLVM_INSTALL_PREFIX@/share/llvm/cmake") ++ ++include(LLVM-Config) + -- cgit v1.2.3