diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2011-04-26 14:55:27 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2011-04-26 14:55:27 +0000 |
commit | ab92d1e1c2df7d459237c155e99feda03cfde59a (patch) | |
tree | 1715b6220f163ea8b567ebf4f983abdb21aa197f /cmake | |
parent | cace5b8cafc9b7ca3f4f20c43491b156e0c20a8a (diff) | |
download | external_llvm-ab92d1e1c2df7d459237c155e99feda03cfde59a.zip external_llvm-ab92d1e1c2df7d459237c155e99feda03cfde59a.tar.gz external_llvm-ab92d1e1c2df7d459237c155e99feda03cfde59a.tar.bz2 |
Honor LLVM_BUILD_RUNTIME.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130199 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-x | cmake/modules/AddLLVM.cmake | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index 6087094..4152164 100755 --- a/cmake/modules/AddLLVM.cmake +++ b/cmake/modules/AddLLVM.cmake @@ -57,9 +57,13 @@ ${name} ignored.") LINK_FLAGS "-Wl,-flat_namespace -Wl,-undefined -Wl,suppress") endif() - install(TARGETS ${name} - LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX} - ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX}) + if( EXCLUDE_FROM_ALL ) + set_target_properties(profile_rt PROPERTIES EXCLUDE_FROM_ALL ON) + else() + install(TARGETS ${name} + LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX} + ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX}) + endif() endif() set_target_properties(${name} PROPERTIES FOLDER "Loadable modules") |