improve how GTest config is passed during builds

Wed, 28 Jun 2023 20:36:25 +0200

author
Mike Becker <universe@uap-core.de>
date
Wed, 28 Jun 2023 20:36:25 +0200
changeset 728
71c4ac35c1ce
parent 727
d92a59f5d261
child 729
600d72644919

improve how GTest config is passed during builds

tests/CMakeLists.txt file | annotate | diff | comparison | revisions
     1.1 --- a/tests/CMakeLists.txt	Wed Jun 28 20:07:52 2023 +0200
     1.2 +++ b/tests/CMakeLists.txt	Wed Jun 28 20:36:25 2023 +0200
     1.3 @@ -2,8 +2,8 @@
     1.4  set(CMAKE_CXX_STANDARD 17)
     1.5  
     1.6  # Load Google Test Framework
     1.7 -set(INSTALL_GTEST OFF)
     1.8 -set(BUILD_GMOCK OFF)
     1.9 +option(INSTALL_GTEST "By default googletest shall not be installed." OFF)
    1.10 +option(BUILD_GMOCK "In this project we do not need gmock." OFF)
    1.11  include(FetchContent)
    1.12  FetchContent_Declare(
    1.13          googletest

mercurial