forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved everything SMT-related to LLVM and updated the cmake scripts. Differential Revision: https://reviews.llvm.org/D54978 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353373 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
1 parent
bae751c
commit 86ab198
Showing
7 changed files
with
1,329 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Looking for Z3 in LLVM_Z3_INSTALL_DIR | ||
find_path(Z3_INCLUDE_DIR NAMES z3.h | ||
NO_DEFAULT_PATH | ||
PATHS ${LLVM_Z3_INSTALL_DIR}/include | ||
PATH_SUFFIXES libz3 z3 | ||
) | ||
|
||
find_library(Z3_LIBRARIES NAMES z3 libz3 | ||
NO_DEFAULT_PATH | ||
PATHS ${LLVM_Z3_INSTALL_DIR} | ||
PATH_SUFFIXES lib bin | ||
) | ||
|
||
find_program(Z3_EXECUTABLE z3 | ||
NO_DEFAULT_PATH | ||
PATHS ${LLVM_Z3_INSTALL_DIR} | ||
PATH_SUFFIXES bin | ||
) | ||
|
||
# If Z3 has not been found in LLVM_Z3_INSTALL_DIR look in the default directories | ||
find_path(Z3_INCLUDE_DIR NAMES z3.h | ||
PATH_SUFFIXES libz3 z3 | ||
) | ||
|
||
find_library(Z3_LIBRARIES NAMES z3 libz3 | ||
PATH_SUFFIXES lib bin | ||
) | ||
|
||
find_program(Z3_EXECUTABLE z3 | ||
PATH_SUFFIXES bin | ||
) | ||
|
||
if(Z3_INCLUDE_DIR AND Z3_LIBRARIES AND Z3_EXECUTABLE) | ||
execute_process (COMMAND ${Z3_EXECUTABLE} -version | ||
OUTPUT_VARIABLE libz3_version_str | ||
ERROR_QUIET | ||
OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
|
||
string(REGEX REPLACE "^Z3 version ([0-9.]+)" "\\1" | ||
Z3_VERSION_STRING "${libz3_version_str}") | ||
unset(libz3_version_str) | ||
endif() | ||
|
||
# handle the QUIETLY and REQUIRED arguments and set Z3_FOUND to TRUE if | ||
# all listed variables are TRUE | ||
include(FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Z3 | ||
REQUIRED_VARS Z3_LIBRARIES Z3_INCLUDE_DIR | ||
VERSION_VAR Z3_VERSION_STRING) | ||
|
||
mark_as_advanced(Z3_INCLUDE_DIR Z3_LIBRARIES) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.