diff options
author | Dan Liew <daniel.liew@imperial.ac.uk> | 2016-11-18 18:18:58 +0000 |
---|---|---|
committer | Dan Liew <delcypher@gmail.com> | 2016-11-18 21:01:20 +0000 |
commit | dda296e09ee53ed85ccf1c3f08e7e809adce612e (patch) | |
tree | c53130ee61c9b65b95d8507a8e5902aff56151a9 /lib/Solver | |
parent | 82ab37990126ac9501d5775c2257ae4314986016 (diff) | |
download | klee-dda296e09ee53ed85ccf1c3f08e7e809adce612e.tar.gz |
[CMake] Re-express LLVM and KLEE library dependencies as
transitive dependencies on KLEE's libraries rather than on the final binaries. This is better because it means we can build other tools that use KLEE's libraries and not need to express the needed LLVM dependencies. It also makes it clearer what the dependencies are between KLEE libraries. This has illustrated a problem with the `kleeBasic` library. It contains `ConstructSolverChain.cpp` which clearly belongs in `kleaverSolver` not in `kleeBasic`. This will be fixed later.
Diffstat (limited to 'lib/Solver')
-rw-r--r-- | lib/Solver/CMakeLists.txt | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/Solver/CMakeLists.txt b/lib/Solver/CMakeLists.txt index 8add4ad6..7864b2de 100644 --- a/lib/Solver/CMakeLists.txt +++ b/lib/Solver/CMakeLists.txt @@ -29,4 +29,15 @@ klee_add_component(kleaverSolver Z3Solver.cpp ) -target_link_libraries(kleaverSolver PRIVATE ${KLEE_SOLVER_LIBRARIES}) +set(LLVM_COMPONENTS + support +) +klee_get_llvm_libs(LLVM_LIBS ${LLVM_COMPONENTS}) +target_link_libraries(kleaverSolver PUBLIC ${LLVM_LIBS}) + +target_link_libraries(kleaverSolver PRIVATE + kleeBasic + kleaverExpr + kleeSupport + ${KLEE_SOLVER_LIBRARIES}) + |