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

llvm-svn: 201318
This commit is contained in:
NAKAMURA Takumi 2014-02-13 11:19:21 +00:00
parent 58f6e74874
commit e72e2e9088

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)