aboutsummaryrefslogtreecommitdiff
path: root/test/unit/CMakeLists.txt
diff options
context:
space:
mode:
authorKai Pastor <dg0yt@darc.de>2019-02-14 16:53:05 +0100
committerKai Pastor <dg0yt@darc.de>2019-02-14 16:53:05 +0100
commit965f89cc26f76e8ab060219ce3c2c4d5ae9b06ea (patch)
tree0a64a156ad9f793b23198ec8bf3fcfe9cc2d66f3 /test/unit/CMakeLists.txt
parent8d73f7c31535f5353f034adc9b8e740ab4d98e02 (diff)
downloadPROJ-965f89cc26f76e8ab060219ce3c2c4d5ae9b06ea.tar.gz
PROJ-965f89cc26f76e8ab060219ce3c2c4d5ae9b06ea.zip
Mark the external GTest package as required
GTest provides a configuration file, so we can disable the module mode. If the GTest package cannot be found, this shall be reported right here. (Note that while we specify a version, we do not require an EXACT match.)
Diffstat (limited to 'test/unit/CMakeLists.txt')
-rw-r--r--test/unit/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/CMakeLists.txt b/test/unit/CMakeLists.txt
index 1da41695..58638fa4 100644
--- a/test/unit/CMakeLists.txt
+++ b/test/unit/CMakeLists.txt
@@ -5,7 +5,7 @@ option(USE_EXTERNAL_GTEST "Compile against external GTest" OFF)
if (USE_EXTERNAL_GTEST)
message(STATUS "Using external GTest")
-find_package(GTest 1.8.1)
+find_package(GTest 1.8.1 CONFIG REQUIRED)
else (USE_EXTERNAL_GTEST)