about summary refs log tree commit diff homepage
path: root/unittests
diff options
context:
space:
mode:
authorlyxia <lysxia@gmail.com>2017-10-14 23:07:42 -0400
committerCristian Cadar <c.cadar@imperial.ac.uk>2018-03-26 19:21:27 +0100
commit110e97a4e07339cb9593a48b6a23df0f484a4750 (patch)
tree470c913e9dcd5abf0e2c73c80248b1b1e346d3fb /unittests
parent4010156bf946341f42aa82fc0a2669c936d5e106 (diff)
downloadklee-110e97a4e07339cb9593a48b6a23df0f484a4750.tar.gz
[CMake] Add option to set GTest include dir
Diffstat (limited to 'unittests')
-rw-r--r--unittests/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
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