llvm.org GIT mirror llvm / e1fadb1
CMake: corrections on LLVM.cmake external services. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110763 91177308-0d34-0410-b5e6-96231b3b80d8 Oscar Fuentes 9 years ago
3 changed file(s) with 15 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
11
22 configure_file(
33 LLVM.cmake
4 ${llvm_cmake_builddir}/LLVM.cmake)
4 ${llvm_cmake_builddir}/LLVM.cmake
5 @ONLY)
56
67 install(FILES
78 ${llvm_cmake_builddir}/LLVM.cmake
0 # This file provides information and services to the final user.
1
2 set(LLVM_COMMON_DEPENDS @LLVM_COMMON_DEPENDS@)
13
24 set(llvm_libs @llvm_libs@)
911
1012 set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)
1113
12 if( NOT EXISTS LLVMConfig.cmake )
14 set(LLVM_NATIVE_ARCH @LLVM_NATIVE_ARCH@)
15
16 # We try to include using the current setting of CMAKE_MODULE_PATH,
17 # which suppossedly was filled by the user with the directory where
18 # this file was installed:
19 include( LLVMConfig OPTIONAL RESULT_VARIABLE LLVMCONFIG_INCLUDED )
20
21 # If failed, we assume that this is an un-installed build:
22 if( NOT LLVMCONFIG_INCLUDED )
1323 set(CMAKE_MODULE_PATH
1424 ${CMAKE_MODULE_PATH}
1525 "@LLVM_SOURCE_DIR@/cmake/modules")
26 include( LLVMConfig )
1627 endif()
1728
18 include( LLVMConfig )
5252 function(llvm_map_components_to_libraries OUT_VAR)
5353 explicit_map_components_to_libraries(result ${ARGN})
5454 get_system_libs(sys_result)
55 set( ${OUT_VAR} ${result} ${sys_result} )
55 set( ${OUT_VAR} ${result} ${sys_result} PARENT_SCOPE )
5656 endfunction(llvm_map_components_to_libraries)
5757
5858