CMake: set configure macro LLVM_PREFIX

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110536 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Oscar Fuentes 2010-08-08 04:32:21 +00:00
parent 118eb57d76
commit 652eb506a7
3 changed files with 4 additions and 2 deletions

View File

@ -260,6 +260,8 @@ else( ENABLE_THREADS )
message(STATUS "Threads disabled.")
endif()
set(LLVM_PREFIX ${CMAKE_INSTALL_PREFIX})
configure_file(
${LLVM_MAIN_INCLUDE_DIR}/llvm/Config/config.h.cmake
${LLVM_BINARY_DIR}/include/llvm/Config/config.h

View File

@ -525,7 +525,7 @@
#cmakedefine LLVM_PATH_TWOPI "${LLVM_PATH_TWOPI}"
/* Installation prefix directory */
#undef LLVM_PREFIX
#cmakedefine LLVM_PREFIX "${LLVM_PREFIX}"
/* Define if the OS needs help to load dependent libraries for dlopen(). */
#cmakedefine LTDL_DLOPEN_DEPLIBS ${LTDL_DLOPEN_DEPLIBS}

View File

@ -81,4 +81,4 @@
#cmakedefine LLVM_PATH_TWOPI "${LLVM_PATH_TWOPI}"
/* Installation prefix directory */
#cmakedefine LLVM_PREFIX
#cmakedefine LLVM_PREFIX "${LLVM_PREFIX}"