mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-29 09:44:52 +01:00
add a warning when using system gtest
gtest upstream advices against using a globally installed gtest. Make sure the user is aware of this.
This commit is contained in:
committed by
Michał Janiszewski
parent
5b3f0454dd
commit
75275d64b7
@@ -7,6 +7,8 @@ if (SYSTEM_GTEST)
|
||||
find_package(GTest REQUIRED)
|
||||
|
||||
set(GTEST_LIBRARIES ${GTEST_BOTH_LIBRARIES})
|
||||
|
||||
message(WARNING "Gtest strongly advices against using a system installation, see https://github.com/google/googletest/blob/master/googletest/docs/FAQ.md#why-is-it-not-recommended-to-install-a-pre-compiled-copy-of-google-test-for-example-into-usrlocal for detailed information. If errors occur please double-check without the SYSTEM_GTEST flag.")
|
||||
else (SYSTEM_GTEST)
|
||||
|
||||
# Bootstrap GoogleTest
|
||||
|
||||
Reference in New Issue
Block a user