Skip to content

Commit

Permalink
🔨 Don't install gtest with QOlm
Browse files Browse the repository at this point in the history
This allow to build with tests and still be able to install
  • Loading branch information
OlivierLDff committed Jul 15, 2021
1 parent 845ce4b commit b341f9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/FetchGTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ FetchContent_Declare(
)

set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
option(INSTALL_GTEST "Enable installation of googletest. (Projects embedding googletest may want to turn this OFF.)" OFF)
FetchContent_MakeAvailable(googletest)

set_target_properties(gtest gtest_main gmock gmock_main PROPERTIES FOLDER "Dependencies/gtest")
Expand Down

0 comments on commit b341f9b

Please sign in to comment.