llvm.org GIT mirror llvm / 069bd29
[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 NAKAMURA Takumi 5 years ago
1 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
220220 endif()
221221
222222 if(ARG_MODULE)
223 set_property(TARGET ${name} PROPERTY SUFFIX ${LLVM_PLUGIN_EXT})
223 set_target_properties(${name} PROPERTIES
224 PREFIX ""
225 SUFFIX ${LLVM_PLUGIN_EXT}
226 )
224227 endif()
225228
226229 if(ARG_SHARED)
284287 add_custom_target(${name})
285288 else()
286289 llvm_add_library(${name} MODULE ${ARGN})
287 set_target_properties( ${name} PROPERTIES PREFIX "" )
288290
289291 if( EXCLUDE_FROM_ALL )
290292 set_target_properties( ${name} PROPERTIES EXCLUDE_FROM_ALL ON)