Files
guru/dev-cpp/scitokens-cpp/files/scitokens-cpp-0.7.1-fix-external-gtest.patch
2022-06-23 13:45:38 +02:00

19 lines
633 B
Diff

Bug: https://github.com/scitokens/scitokens-cpp/pull/89
Bug: https://github.com/scitokens/scitokens-cpp/pull/90
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 22f86a6..2083bff 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -1,6 +1,8 @@
add_executable(scitokens-gtest main.cpp)
-add_dependencies(scitokens-gtest gtest)
+if( NOT SCITOKENS_EXTERNAL_GTEST )
+ add_dependencies(scitokens-gtest gtest)
+ include_directories("${PROJECT_SOURCE_DIR}/vendor/gtest/googletest/include")
+endif()
-include_directories("${PROJECT_SOURCE_DIR}/vendor/gtest/googletest/include")
if(SCITOKENS_EXTERNAL_GTEST)