File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -635,7 +635,10 @@ macro(add_llvm_library name)
635635 set_property ( GLOBAL APPEND PROPERTY LLVM_LIBS ${name} )
636636 endif ()
637637
638- if ( EXCLUDE_FROM_ALL )
638+ if (ARG_MODULE AND NOT TARGET ${name} )
639+ # Add empty "phony" target
640+ add_custom_target (${name} )
641+ elseif ( EXCLUDE_FROM_ALL )
639642 set_target_properties ( ${name} PROPERTIES EXCLUDE_FROM_ALL ON )
640643 elseif (ARG_BUILDTREE_ONLY)
641644 set_property (GLOBAL APPEND PROPERTY LLVM_EXPORTS_BUILDTREE_ONLY ${name} )
@@ -674,13 +677,10 @@ macro(add_llvm_library name)
674677 endif ()
675678 set_property (GLOBAL APPEND PROPERTY LLVM_EXPORTS ${name} )
676679 endif ()
677- set_target_properties (${name} PROPERTIES FOLDER "Libraries" )
678- if (NOT TARGET ${name} )
679- # Add empty "phony" target
680- add_custom_target (${name} )
681- endif ()
682680 if (ARG_MODULE)
683681 set_target_properties (${name} PROPERTIES FOLDER "Loadable modules" )
682+ else ()
683+ set_target_properties (${name} PROPERTIES FOLDER "Libraries" )
684684 endif ()
685685endmacro (add_llvm_library name )
686686
You can’t perform that action at this time.
0 commit comments