Skip to content

Commit

Permalink
Prevent gtest from being installed
Browse files Browse the repository at this point in the history
  • Loading branch information
bugdea1er committed Mar 15, 2024
1 parent 5fb9f84 commit 3618079
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
project(${PROJECT_NAME}.test)

# Avoid warning about DOWNLOAD_EXTRACT_TIMESTAMP in CMake >=3.24:
if(POLICY CMP0135)
cmake_policy(SET CMP0135 NEW)
endif()
Expand All @@ -10,8 +9,8 @@ FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/refs/tags/v1.14.0.tar.gz
)
# For Windows: Prevent overriding the parent project's compiler/linker settings
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
set(INSTALL_GTEST OFF CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)

add_executable(${PROJECT_NAME} file_test.cpp directory_test.cpp)
Expand Down

0 comments on commit 3618079

Please sign in to comment.