Skip to content
Snippets Groups Projects
Commit 3a5f9101 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

simpler way of disabling gtest installation

parent 071f1808
No related branches found
No related tags found
2 merge requests!36After cmake and const refactor,!33Resolve "Adapt to core CMakeLists.txt refactor"
...@@ -55,13 +55,8 @@ else() ...@@ -55,13 +55,8 @@ else()
GIT_REPOSITORY https://github.com/google/googletest.git GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG main) GIT_TAG main)
#FetchContent_MakeAvailable(googletest) SET(INSTALL_GTEST OFF) # Disable installation of googletest
# Disable installation of googletest: https://stackoverflow.com/questions/65527126/disable-install-for-fetchcontent FetchContent_MakeAvailable(googletest)
FetchContent_GetProperties(googletest)
if(NOT googletest_POPULATED)
FetchContent_Populate(googletest)
add_subdirectory(${googletest_SOURCE_DIR} ${googletest_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()
endif() endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment