-
Notifications
You must be signed in to change notification settings - Fork 440
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
cmake: build correctly with globally installed z3 #502
Conversation
We plan to remove cudd in the near future and Z3 will be part of SVF's third-party lib later. I found the issue for missing z3 due to an extra |
|
Sorry, I don't get, what you mean. In the current master, z3 is already a hard dependency, because of:
(Source) However, this line forced z3 to be
This forces z3 to be exactly the z3 that is downloaded with Enabling the build only with With my patch it should be enough to execute this (on a Debian/Ubuntu) to successfully compile SVF:
|
I see. However, for my build on mac os, there is a compilation error (z3++.h not found) if we do not include BTW: what do you want to do here: https://github.com/SVF-tools/SVF/pull/502/files#diff-1e7de1ae2d059d21e1dd75d5812d5a34b0222cef273b7c3a2af62eb747f9d20aR55? |
my build command:
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include | ||
${CMAKE_CURRENT_BINARY_DIR}/include | ||
${Z3_DIR}/include/) |
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.
I think we need to include ${Z3_INSTALLS}
here.
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 should be fixed.
This resolves a relative path to the build directory for |
I have no clue of cmake but this seems to enable building against a globally installed z3 (like per a distribution package).