Honor LLVM_BUILD_RUNTIME.

llvm-svn: 130199
This commit is contained in:
Oscar Fuentes 2011-04-26 14:55:27 +00:00
parent 7503d15062
commit 246a11f21c
2 changed files with 11 additions and 3 deletions

View File

@ -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")

View File

@ -1 +1,5 @@
if( NOT LLVM_BUILD_RUNTIME )
set(EXCLUDE_FROM_ALL ON)
endif()
add_subdirectory(libprofile)