[all-commits] [llvm/llvm-project] af8056: [flang][cmake] Improve how CLANG_DIR is handled

Andrzej WarzyƄski via All-commits all-commits at lists.llvm.org
Tue Mar 23 08:16:31 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: af8056889ac9913c587293fd68503b4883dab558
      https://github.com/llvm/llvm-project/commit/af8056889ac9913c587293fd68503b4883dab558
  Author: Andrzej Warzynski <andrzej.warzynski at arm.com>
  Date:   2021-03-23 (Tue, 23 Mar 2021)

  Changed paths:
    M flang/CMakeLists.txt

  Log Message:
  -----------
  [flang][cmake] Improve how CLANG_DIR is handled

* Added a sanity check with `Clang_FOUND` to verify that find_package
succeeded
* Made sure that find_package won't use any of CMake's standard paths
to guarantee that only the path provided with CLANG_DIR is considered
(implemented through NO_DEFAULT_PATH)
* Made the call to get_filename_component more explicit (so that it is
clear what the base directory is)
* Updated comments to clarify what CLANG_DIR means

Differential Revision: https://reviews.llvm.org/D99088




More information about the All-commits mailing list