Summary: Address @smeenai feedback https://reviews.llvm.org/D117061#inline-1122106: >CMake has if(IN_LIST) now, which you can use instead of the string(FIND) IN_LIST is available since CMake 3.3 released in 2015. Reviewed By: smeenai FBD33590959
10 lines
253 B
CMake
10 lines
253 B
CMake
if ("X86" IN_LIST LLVM_TARGETS_TO_BUILD)
|
|
message(STATUS "Targeting X86 in llvm-bolt")
|
|
add_subdirectory(X86)
|
|
endif()
|
|
|
|
if ("AArch64" IN_LIST LLVM_TARGETS_TO_BUILD)
|
|
message(STATUS "Targeting AArch64 in llvm-bolt")
|
|
add_subdirectory(AArch64)
|
|
endif()
|