3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-09-15 06:01:27 +00:00

Update README-CMake.md

Co-authored-by: gonzalobg <65027571+gonzalobg@users.noreply.github.com>
This commit is contained in:
Nikolaj Bjorner 2025-08-27 08:44:40 -07:00 committed by GitHub
parent 1f92ccfe72
commit a3bb2f070c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -140,7 +140,8 @@ target_link_libraries(yourTarget PRIVATE z3::libz3)
If you have Z3 installed on your system (e.g., via package manager or by building and installing Z3 yourself), you can use CMake's `find_package` to locate it:
```cmake
find_package(Z3 REQUIRED CONFIG)
set(Z3_MIN_VERSION "4.15.3")
find_package(Z3 ${Z3_MIN_VERSION} REQUIRED CONFIG)
```
Once found, you can link to Z3 using the exported target (recommended):