Skip to content

Commit ea5106a

Browse files
Stefan BuschmannJan Ole Vollmer
authored andcommitted
Make sure that gmock and gtest are always built as static libraries
1 parent 360f437 commit ea5106a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

source/tests/googletest/googlemock/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# BUILD_SHARED_LIBS is a standard CMake variable, but we declare it here to
99
# make it prominent in the GUI.
1010
option(BUILD_SHARED_LIBS "Build shared libraries (DLLs)." OFF)
11+
set(BUILD_SHARED_LIBS OFF)
1112

1213
option(gmock_build_tests "Build all of Google Mock's own tests." OFF)
1314

source/tests/googletest/googletest/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# BUILD_SHARED_LIBS is a standard CMake variable, but we declare it here to
99
# make it prominent in the GUI.
1010
option(BUILD_SHARED_LIBS "Build shared libraries (DLLs)." OFF)
11+
set(BUILD_SHARED_LIBS OFF)
1112

1213
# When other libraries are using a shared version of runtime libraries,
1314
# Google Test also has to use one.

0 commit comments

Comments
 (0)