-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Use ROOT_MAIN_{SOURCE,BINARY}_DIR instead of CMAKE_{SOURCE, BINARY}_DIR. NFC #18130
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
Conversation
f1d6c1d
to
1f217a4
Compare
Test Results
18 files 18 suites 4d 5h 42m 9s ⏱️
2 737 tests 2 737 ✅ 0 💤 0 ❌
47 518 runs 47 518 ✅ 0 💤 0 ❌
Results for commit a092ad5.
♻️ This comment has been updated with latest results.
1f217a4
to
fda5934
Compare
In many places, can we instead use CMAKE_CURRENT_{SOURCE,BINARY}_DIR
which I believe is the standard CMake way of approaching this issue? Also you cannot just change interpreter/CppInterOp
in the ROOT source directory, the change needs to be committed upstream first and then synchronized via a pinned commit hash.
fda5934
to
f575ca6
Compare
...IR. NFC This patch renames `CMAKE_SOURCE_DIR` to `ROOT_MAIN_SOURCE_DIR` and `CMAKE_BINARY_DIR` to `ROOT_MAIN_BINARY_DIR`. The change unblocks progress on PR root-project#16751 and root-project#16211 by allowing them to disentangle the build step of building a user-specified set of components after another which was already built at an earlier stage. Supersedes: root-project#17746.
f575ca6
to
a092ad5
Compare
In many places, can we instead use
CMAKE_CURRENT_{SOURCE,BINARY}_DIR
which I believe is the standard CMake way of approaching this issue?
I intended this for a quick nfc. If you can comment on where you think this should be done I can give it a shot (perhaps in a separate pr)?
Also you cannot just change
interpreter/CppInterOp
in the ROOT source directory, the change needs to be committed upstream first and then synchronized via a pinned commit hash.
Fixed, probably we don't need that change there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the top-level CMakeLists.txt
I think we should use CMAKE_PROJECT_*
after project(ROOT)
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, even longer. Assuming everybody agrees with that suggestion I will do the mass rename.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This path is likely wrong, it should probably be something inside bindings/pyroot/cppyy/
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh oh!
There was an error while loading. Please reload this page.
This patch renames
CMAKE_SOURCE_DIR
toROOT_MAIN_SOURCE_DIR
andCMAKE_BINARY_DIR
toROOT_MAIN_BINARY_DIR
.The change unblocks progress on PR #16751 and #16211 by allowing them to disentangle the build step of building a user-specified set of components after another which was already built at an earlier stage.
Supersedes: #17746.