Skip to content
Snippets Groups Projects
Forked from asapo / asapo
Source project has a limited visibility.
  • Marc-Olivier Andrez's avatar
    64b99e3b
    build: use `GTest` CMake module to handle dependencies on gtest · 64b99e3b
    Marc-Olivier Andrez authored
    As a consequence, we can remove code in CMake files to handle these
    dependencies on `gtest` and `gmock`, which fixes the following error
    when running CMake:
    
    ```sh
    $ cmake -G Ninja ../.. -DPython_EXECUTABLE=python3.7 -DBUILD_TESTS=ON -DENABLE_COVERAGE=ON -DBUILD_CPP_DOCS=ON -DBUILD_PYTHON_DOCS=ON
    ...
    CMake Error at CMakeModules/testing_cpp.cmake:47 (IF):
      if given arguments:
    
        "WIN32" "AND" "STREQUAL" "Debug"
    
      Unknown arguments specified
    Call Stack (most recent call first):
      common/cpp/src/common/CMakeLists.txt:11 (add_plain_unit_test)
    ```
    64b99e3b
    History
    build: use `GTest` CMake module to handle dependencies on gtest
    Marc-Olivier Andrez authored
    As a consequence, we can remove code in CMake files to handle these
    dependencies on `gtest` and `gmock`, which fixes the following error
    when running CMake:
    
    ```sh
    $ cmake -G Ninja ../.. -DPython_EXECUTABLE=python3.7 -DBUILD_TESTS=ON -DENABLE_COVERAGE=ON -DBUILD_CPP_DOCS=ON -DBUILD_PYTHON_DOCS=ON
    ...
    CMake Error at CMakeModules/testing_cpp.cmake:47 (IF):
      if given arguments:
    
        "WIN32" "AND" "STREQUAL" "Debug"
    
      Unknown arguments specified
    Call Stack (most recent call first):
      common/cpp/src/common/CMakeLists.txt:11 (add_plain_unit_test)
    ```