blob: 8b4ac40ea827a9b92ff68fc23231e58d500df5b8 [file]
# Add the target specific files first so they can override the generic fallback.
if(LIBCLC_ARCH_DIR AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/lib/${LIBCLC_ARCH_DIR})
add_subdirectory(lib/${LIBCLC_ARCH_DIR})
endif()
# SPIR-V targets cannot use the generic list of generic functions yet.
if(NOT LIBCLC_TARGET_ARCH IN_LIST LIBCLC_ARCHS_SPIRV)
add_subdirectory(lib/generic)
endif()