This is an automated email from the ASF dual-hosted git repository.

pengzheng pushed a commit to branch feature/civetweb_integration
in repository https://gitbox.apache.org/repos/asf/celix.git


The following commit(s) were added to refs/heads/feature/civetweb_integration 
by this push:
     new cbb662ed Don't install googletest when installing Celix.
cbb662ed is described below

commit cbb662edaf73cb2a0c0882bbdbacacef0faf15bf
Author: PengZheng <[email protected]>
AuthorDate: Mon Feb 6 10:47:54 2023 +0800

    Don't install googletest when installing Celix.
---
 cmake/AddGTest.cmake | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cmake/AddGTest.cmake b/cmake/AddGTest.cmake
index f68116a5..f3533da5 100644
--- a/cmake/AddGTest.cmake
+++ b/cmake/AddGTest.cmake
@@ -16,10 +16,11 @@
 # under the License.
 
 include(FetchContent)
+set(INSTALL_GTEST FALSE CACHE BOOL "" FORCE)
 FetchContent_Declare(
         googletest
         GIT_REPOSITORY https://github.com/google/googletest.git
 #        GIT_REPOSITORY https://gitee.com/mirrors/googletest.git
         GIT_TAG        release-1.11.0
 )
-FetchContent_MakeAvailable(googletest)
\ No newline at end of file
+FetchContent_MakeAvailable(googletest)

Reply via email to