mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
CMake: New variable LLVM_LIBDIR_SUFFIX.
Patch by Ingmar Vanhassel! llvm-svn: 73216
This commit is contained in:
parent
5f9665b84a
commit
9f16ef410d
@ -26,6 +26,7 @@ set(LLVM_MAIN_INCLUDE_DIR ${LLVM_MAIN_SRC_DIR}/include)
|
||||
set(LLVM_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
|
||||
set(LLVM_TOOLS_BINARY_DIR ${LLVM_BINARY_DIR}/bin)
|
||||
set(LLVM_EXAMPLES_BINARY_DIR ${LLVM_BINARY_DIR}/examples)
|
||||
set(LLVM_LIBDIR_SUFFIX "" CACHE STRING "Define suffix of library directory name (32/64)" )
|
||||
|
||||
set(LLVM_ALL_TARGETS
|
||||
Alpha
|
||||
|
@ -10,8 +10,8 @@ macro(add_llvm_library name)
|
||||
add_dependencies( ${name} ${LLVM_COMMON_DEPENDS} )
|
||||
endif( LLVM_COMMON_DEPENDS )
|
||||
install(TARGETS ${name}
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib)
|
||||
LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX}
|
||||
ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX})
|
||||
endmacro(add_llvm_library name)
|
||||
|
||||
|
||||
|
@ -38,5 +38,5 @@ macro(add_partially_linked_object lib)
|
||||
set( llvm_lib_targets ${llvm_lib_targets} ${tnplo} PARENT_SCOPE )
|
||||
endif( )
|
||||
install(FILES ${pll}
|
||||
DESTINATION lib)
|
||||
DESTINATION lib${LLVM_LIBDIR_SUFFIX})
|
||||
endmacro(add_partially_linked_object lib)
|
||||
|
@ -217,6 +217,11 @@
|
||||
<dd>Path where LLVM will be installed if "make install" is invoked
|
||||
or the "INSTALL" target is built.</dd>
|
||||
|
||||
<dt><b>LLVM_LIBDIR_SUFFIX</b>:STRING</dt>
|
||||
<dd>Extra suffix to append to the directory where libraries are to
|
||||
be installed. On a 64-bit architecture, one could use
|
||||
-DLLVM_LIBDIR_SUFFIX=64 to install libraries to /usr/lib64.</dd>
|
||||
|
||||
<dt><b>CMAKE_C_FLAGS</b>:STRING</dt>
|
||||
<dd>Extra flags to use when compiling C source files.</dd>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user