[all-commits] [llvm/llvm-project] 71c837: [llvm/cmake] Replace CMAKE_SOURCE_DIR with PROJECT...
Sebastian Neubauer via All-commits
all-commits at lists.llvm.org
Thu Jan 12 02:37:35 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 71c837f6d7d74e44f156ac60a47b1198727ba90f
https://github.com/llvm/llvm-project/commit/71c837f6d7d74e44f156ac60a47b1198727ba90f
Author: Sebastian Neubauer <Sebastian.Neubauer at amd.com>
Date: 2023-01-12 (Thu, 12 Jan 2023)
Changed paths:
M llvm/cmake/modules/HandleLLVMOptions.cmake
M llvm/include/llvm/TargetParser/CMakeLists.txt
M llvm/unittests/Target/PowerPC/CMakeLists.txt
M llvm/unittests/Target/WebAssembly/CMakeLists.txt
M llvm/unittests/Target/X86/CMakeLists.txt
Log Message:
-----------
[llvm/cmake] Replace CMAKE_SOURCE_DIR with PROJECT_SOURCE_DIR
When adding llvm to a build with add_subdirectory, CMAKE_SOURCE_DIR
refers to the source directory of the parent project. We want to use
PROJECT_SOURCE_DIR instead.
Differential Revision: https://reviews.llvm.org/D141521
More information about the All-commits
mailing list