public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sys-devel/llvm/files: llvm-3.3-cmake-modulepath.patch
@ 2014-01-06 13:08 Michal Gorny (mgorny)
  0 siblings, 0 replies; only message in thread
From: Michal Gorny (mgorny) @ 2014-01-06 13:08 UTC (permalink / raw
  To: gentoo-commits

mgorny      14/01/06 13:08:40

  Added:                llvm-3.3-cmake-modulepath.patch
  Log:
  Restore missing patches for 3.3. Add a patch for CMake wrt bug #496480.
  
  (Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

Revision  Changes    Path
1.1                  sys-devel/llvm/files/llvm-3.3-cmake-modulepath.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/llvm/files/llvm-3.3-cmake-modulepath.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/llvm/files/llvm-3.3-cmake-modulepath.patch?rev=1.1&content-type=text/plain

Index: llvm-3.3-cmake-modulepath.patch
===================================================================
--- 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)
 





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-01-06 13:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-06 13:08 [gentoo-commits] gentoo-x86 commit in sys-devel/llvm/files: llvm-3.3-cmake-modulepath.patch Michal Gorny (mgorny)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox