Index: clang/lib/Headers/CMakeLists.txt =================================================================== --- clang/lib/Headers/CMakeLists.txt +++ clang/lib/Headers/CMakeLists.txt @@ -421,6 +421,9 @@ add_header_target("utility-resource-headers" ${utility_files}) set(header_install_dir lib${LLVM_LIBDIR_SUFFIX}/clang/${CLANG_VERSION}/include) +if(NOT CLANG_RESOURCE_DIR STREQUAL "") + set(header_install_dir ${CMAKE_INSTALL_BINDIR}/${CLANG_RESOURCE_DIR}/include) +endif() ############################################################# # Install rules for the catch-all clang-resource-headers target