We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ccebdc commit 362b77aCopy full SHA for 362b77a
CMakeLists.txt
@@ -8,6 +8,11 @@ add_library(fpm INTERFACE)
8
9
target_include_directories(fpm INTERFACE include)
10
11
+# if this project is being used as a submodule, it's someone elses' dependency.
12
+# in that case, we don't want to set up any testing, since they just want to
13
+# use it as a library.
14
+get_directory_property(hasParent PARENT_DIRECTORY)
15
+if(NOT hasParent)
16
#
17
# Test suite
18
@@ -196,3 +201,4 @@ endif()
196
201
197
202
add_subdirectory(3rdparty/googlebench)
198
203
add_subdirectory(3rdparty/googletest)
204
+endif()
0 commit comments