We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4fed92c + d53d658 commit ca3ce41Copy full SHA for ca3ce41
CMakeLists.txt
@@ -7,9 +7,12 @@ INCLUDE (subdirs)
7
INCLUDE (openssl)
8
INCLUDE (version)
9
10
-OPTION (BUILD_BENCHMARK "Build benchmark" OFF)
11
-OPTION (BUILD_TESTS "Build tests" OFF)
12
-OPTION (BUILD_SHARED_LIBS "Build shared libs" OFF)
+# use global flags only for standalone build
+IF ("${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}")
+ OPTION (BUILD_BENCHMARK "Build benchmark" OFF)
13
+ OPTION (BUILD_TESTS "Build tests" OFF)
14
+ OPTION (BUILD_SHARED_LIBS "Build shared libs" OFF)
15
+ENDIF ()
16
OPTION (WITH_OPENSSL "Use OpenSSL for TLS connections" OFF)
17
OPTION (WITH_SYSTEM_ABSEIL "Use system ABSEIL" OFF)
18
OPTION (WITH_SYSTEM_LZ4 "Use system LZ4" OFF)
0 commit comments