llvm.org GIT mirror llvm / d8b7c9f
[CMake] LLVM_BINARY_DIR was not being properly set in LLVMConfig.cmake LLVMConfig.cmake needs to set LLVM_BINARY_DIR differently based on whether or not it is the build directory or the install directory. The build directory just needs to set the value from the configuration, the install directory needs to set it to the install prefix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273479 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Bieneman 4 years ago
2 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2828 "${LLVM_LIBRARY_DIR}"
2929 )
3030 set(LLVM_CONFIG_CMAKE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
31 set(LLVM_CONFIG_BINARY_DIR "${LLVM_BINARY_DIR}")
3132 set(LLVM_CONFIG_TOOLS_BINARY_DIR "${LLVM_TOOLS_BINARY_DIR}")
3233 set(LLVM_CONFIG_EXPORTS_FILE "${llvm_cmake_builddir}/LLVMExports.cmake")
3334 configure_file(
5960 set(LLVM_CONFIG_INCLUDE_DIRS "\${LLVM_INSTALL_PREFIX}/include")
6061 set(LLVM_CONFIG_LIBRARY_DIRS "\${LLVM_INSTALL_PREFIX}/lib\${LLVM_LIBDIR_SUFFIX}")
6162 set(LLVM_CONFIG_CMAKE_DIR "\${LLVM_INSTALL_PREFIX}/${LLVM_INSTALL_PACKAGE_DIR}")
63 set(LLVM_CONFIG_BINARY_DIR "\${LLVM_INSTALL_PREFIX}")
6264 set(LLVM_CONFIG_TOOLS_BINARY_DIR "\${LLVM_INSTALL_PREFIX}/bin")
6365 set(LLVM_CONFIG_EXPORTS_FILE "\${LLVM_CMAKE_DIR}/LLVMExports.cmake")
6466 configure_file(
5252 set(LLVM_LIBRARY_DIR "@LLVM_CONFIG_LIBRARY_DIRS@")
5353 set(LLVM_DEFINITIONS "@LLVM_DEFINITIONS@")
5454 set(LLVM_CMAKE_DIR "@LLVM_CONFIG_CMAKE_DIR@")
55 set(LLVM_BINARY_DIR "${LLVM_INSTALL_PREFIX}")
55 set(LLVM_BINARY_DIR "@LLVM_CONFIG_BINARY_DIR@")
5656 set(LLVM_TOOLS_BINARY_DIR "@LLVM_CONFIG_TOOLS_BINARY_DIR@")
5757 set(LLVM_TOOLS_INSTALL_DIR "@LLVM_TOOLS_INSTALL_DIR@")
5858