Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 496480 | Differences between
and this patch

Collapse All | Expand All

(-)cmake/modules/LLVMConfig.cmake.in.old (-11 / +5 lines)
Lines 39-54 Link Here
39
set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib)
39
set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib)
40
set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS")
40
set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS")
41
41
42
# We try to include using the current setting of CMAKE_MODULE_PATH,
42
# For some reasons without it it fails on Gentoo, see bug #496480
43
# which suppossedly was filled by the user with the directory where
43
set(CMAKE_MODULE_PATH
44
# this file was installed:
45
include( LLVM-Config OPTIONAL RESULT_VARIABLE LLVMCONFIG_INCLUDED )
46
47
# If failed, we assume that this is an un-installed build:
48
if( NOT LLVMCONFIG_INCLUDED )
49
  set(CMAKE_MODULE_PATH
50
    ${CMAKE_MODULE_PATH}
44
    ${CMAKE_MODULE_PATH}
51
    "@LLVM_SOURCE_DIR@/cmake/modules")
45
    "@LLVM_INSTALL_PREFIX@/share/llvm/cmake")
52
  include( LLVM-Config )
46
53
endif()
47
include(LLVM-Config)
54
48

Return to bug 496480