mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
[CMake][CMP0051] Avoid for user of objlib to use llvm_update_compile_flags().
$<TARGET_OBJECTS> shouldn't require compile flags. Flags are set in obj.${name}. llvm-svn: 246984
This commit is contained in:
parent
001382121a
commit
5d0503a7a9
@ -399,7 +399,10 @@ function(llvm_add_library name)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
set_output_directory(${name} ${LLVM_RUNTIME_OUTPUT_INTDIR} ${LLVM_LIBRARY_OUTPUT_INTDIR})
|
set_output_directory(${name} ${LLVM_RUNTIME_OUTPUT_INTDIR} ${LLVM_LIBRARY_OUTPUT_INTDIR})
|
||||||
llvm_update_compile_flags(${name})
|
# $<TARGET_OBJECTS> doesn't require compile flags.
|
||||||
|
if(NOT obj_name)
|
||||||
|
llvm_update_compile_flags(${name})
|
||||||
|
endif()
|
||||||
add_link_opts( ${name} )
|
add_link_opts( ${name} )
|
||||||
if(ARG_OUTPUT_NAME)
|
if(ARG_OUTPUT_NAME)
|
||||||
set_target_properties(${name}
|
set_target_properties(${name}
|
||||||
@ -597,7 +600,10 @@ macro(add_llvm_executable name)
|
|||||||
set_windows_version_resource_properties(${name} ${windows_resource_file})
|
set_windows_version_resource_properties(${name} ${windows_resource_file})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
llvm_update_compile_flags(${name})
|
# $<TARGET_OBJECTS> doesn't require compile flags.
|
||||||
|
if(NOT LLVM_ENABLE_OBJLIB)
|
||||||
|
llvm_update_compile_flags(${name})
|
||||||
|
endif()
|
||||||
add_link_opts( ${name} )
|
add_link_opts( ${name} )
|
||||||
|
|
||||||
# Do not add -Dname_EXPORTS to the command-line when building files in this
|
# Do not add -Dname_EXPORTS to the command-line when building files in this
|
||||||
|
Loading…
x
Reference in New Issue
Block a user