diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt index e6d8fdc382b5..357286b0e6ae 100644 --- a/clang/CMakeLists.txt +++ b/clang/CMakeLists.txt @@ -525,7 +525,7 @@ if (CLANG_BUILT_STANDALONE) # Install a /share/clang/cmake/ClangConfig.cmake file so that # find_package(Clang) works. Install the target list with it. - install(EXPORT ClangTargets DESTINATION ${LLVM_INSTALL_PACKAGE_DIR}) + install(EXPORT ClangTargets DESTINATION ${CLANG_INSTALL_PACKAGE_DIR}) install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules/ClangConfig.cmake