-
Notifications
You must be signed in to change notification settings - Fork 444
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
p4tool: Fix build with Z3 installed in non-standard path #3932
Conversation
... so that it is visible when declaring any library under p4tools
This fixes build with Z3 installed to non-standard locations.
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.
LGTM - small request: Could you also add 4.12.0 as the Z3 max version? Anything above and the tool will crash.
@@ -34,6 +34,19 @@ project(P4TOOLS VERSION ${P4C_SEM_VERSION_STRING}) | |||
# inherit FindLibGc. | |||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") | |||
|
|||
# We need a fairly recent version of Z3. | |||
set(Z3_MIN_VERSION "4.8.14") | |||
# But 4.12+ is currently broken with libGC |
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 is kinda unfortunate. Is this issue reported somewhere?
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.
Fabian would know more, see also #3930 (comment).
This fixes build with Z3 in non-standard location & it also improves documentation of the FindZ3 cmake module.