File tree 2 files changed +3
-0
lines changed
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ endif()
11
11
12
12
option (CPPBASE_BUILD_TESTING "Build unit tests" ${CPPBASE_STANDALONE_PROJECT} )
13
13
option (GLIBCXX_USE_CXX11_ABI "Set -D_GLIBCXX_USE_CXX11_ABI=1" OFF )
14
+ option (CPPBASE_BUILD_GTEST "Build google test" ON )
14
15
15
16
# set(CMAKE_INCLUDE_CURRENT_DIR ON) # this causes capnproto build to fail
16
17
set (CMAKE_CXX_STANDARD_REQUIRED ON )
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ add_subdirectory(${fmt_SOURCE_DIR} ${fmt_BINARY_DIR})
78
78
# googletest
79
79
# ============================================================
80
80
#
81
+ if (CPPBASE_BUILD_GTEST)
81
82
message ("==> Configuring googletest" )
82
83
set (BUILD_SHARED_LIBS ON CACHE BOOL "" )
83
84
set (INSTALL_GMOCK OFF CACHE BOOL "" )
@@ -91,6 +92,7 @@ download_project(
91
92
QUIET
92
93
)
93
94
add_subdirectory (${googletest_SOURCE_DIR} ${googletest_BINARY_DIR} )
95
+ endif ()
94
96
95
97
# ============================================================
96
98
# rapidjson
You can’t perform that action at this time.
0 commit comments