[CMake] Move the target property PREFIX from add_llvm_loadable_module() to llvm_add_library().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201318 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
NAKAMURA Takumi 2014-02-13 11:19:21 +00:00
parent 74c3f7dc5b
commit 069bd29ec4

View File

@ -221,7 +221,10 @@ function(llvm_add_library name)
endif()
if(ARG_MODULE)
set_property(TARGET ${name} PROPERTY SUFFIX ${LLVM_PLUGIN_EXT})
set_target_properties(${name} PROPERTIES
PREFIX ""
SUFFIX ${LLVM_PLUGIN_EXT}
)
endif()
if(ARG_SHARED)
@ -285,7 +288,6 @@ ${name} ignored.")
add_custom_target(${name})
else()
llvm_add_library(${name} MODULE ${ARGN})
set_target_properties( ${name} PROPERTIES PREFIX "" )
if( EXCLUDE_FROM_ALL )
set_target_properties( ${name} PROPERTIES EXCLUDE_FROM_ALL ON)