diff options
author | lyxia <lysxia@gmail.com> | 2017-10-14 23:07:42 -0400 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2018-03-26 19:21:27 +0100 |
commit | 110e97a4e07339cb9593a48b6a23df0f484a4750 (patch) | |
tree | 470c913e9dcd5abf0e2c73c80248b1b1e346d3fb | |
parent | 4010156bf946341f42aa82fc0a2669c936d5e106 (diff) | |
download | klee-110e97a4e07339cb9593a48b6a23df0f484a4750.tar.gz |
[CMake] Add option to set GTest include dir
-rw-r--r-- | README-CMake.md | 3 | ||||
-rw-r--r-- | unittests/CMakeLists.txt | 7 |
2 files changed, 9 insertions, 1 deletions
diff --git a/README-CMake.md b/README-CMake.md index cacdc637..4deb8860 100644 --- a/README-CMake.md +++ b/README-CMake.md @@ -63,6 +63,9 @@ cmake -DCMAKE_BUILD_TYPE=Release /path/to/klee/src * `GTEST_SRC_DIR` (STRING) - Path to GTest source tree. +* `GTEST_INCLUDE_DIR` (STRING) - Path to GTest include directory, + if it is not under `GTEST_SRC_DIR`. + * `KLEE_ENABLE_TIMESTAMP` (BOOLEAN) - Enable timestamps in KLEE sources. * `KLEE_UCLIBC_PATH` (STRING) - Path to klee-uclibc root directory. diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt index 85b7b061..63934336 100644 --- a/unittests/CMakeLists.txt +++ b/unittests/CMakeLists.txt @@ -52,7 +52,12 @@ define_property(GLOBAL FULL_DOCS "KLEE unit tests" ) -set(GTEST_INCLUDE_DIR "${GTEST_SRC_DIR}/include") +set(GTEST_INCLUDE_DIR + "${GTEST_SRC_DIR}/include" + CACHE + PATH + "Path to GTest include directory" +) if (NOT IS_DIRECTORY "${GTEST_INCLUDE_DIR}") message(FATAL_ERROR |