mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-12 01:18:53 +00:00
[CMake] Move the target property PREFIX from add_llvm_loadable_module() to llvm_add_library().
llvm-svn: 201318
This commit is contained in:
parent
58f6e74874
commit
e72e2e9088
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user