llvm.org GIT mirror llvm / 26b9220
[CMake] Create convenience targets for runtime projects Each runtime project has a top-level target that is the name of the runtime (minus the "lib" prefix if applicable). This creates top-level targets mapping to runtime projects. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279160 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Bieneman 3 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
7272 string(REPLACE "-" "_" canon_name ${projName})
7373 string(TOUPPER ${canon_name} canon_name)
7474 list(APPEND prefixes ${canon_name})
75
76 string(FIND ${projName} "lib" LIB_IDX)
77 if(LIB_IDX EQUAL 0)
78 string(SUBSTRING ${projName} 3 -1 projName)
79 endif()
80 list(APPEND runtime_names ${projName})
7581 endforeach()
7682
7783 if(runtimes)
8490 # Builtins were built separately above
8591 CMAKE_ARGS -DCOMPILER_RT_BUILD_BUILTINS=Off
8692 PASSTHROUGH_PREFIXES ${prefixes}
93 EXTRA_TARGETS ${runtime_names}
8794 USE_TOOLCHAIN)
8895 endif()
8996 endif()