Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable CMP0074 to allow ${pkg}_ROOT, especially for LLVM_ROOT #3713

Merged
merged 2 commits into from
Nov 19, 2021

Conversation

gfx
Copy link
Contributor

@gfx gfx commented Nov 18, 2021

Since CMake 3.12, ${pkg}_ROOT is supported if CMP0074 is set to NEW. This allows users to select a particular version of LLVM very easily. For example, cmake ... -DLLVM_ROOT=/usr/lib/llvm-13.

See https://cmake.org/cmake/help/latest/policy/CMP0074.html#policy:CMP0074 for details.

@yonghong-song
Copy link
Collaborator

yonghong-song commented Nov 18, 2021

The patch got a failure on ubuntu 18.04:

CMake Error at CMakeLists.txt:4 (cmake_policy):
  Policy "CMP0074" is not known to this version of CMake.

@gfx
Copy link
Contributor Author

gfx commented Nov 18, 2021

Fixed for older dists!

@yonghong-song yonghong-song merged commit 9fc0493 into iovisor:master Nov 19, 2021
@gfx gfx deleted the enable-CMP0074 branch November 22, 2021 00:35
CrackerCat pushed a commit to CrackerCat/bcc that referenced this pull request Jul 31, 2024
…sor#3713)

set CMP0074 to allow the use of `LLVM_ROOT` env var
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants