Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

18.4.2 gtest #1297

Closed

Conversation

dvrogozh
Copy link
Contributor

That's 18.4 branch update w/ gtest patches only (compare to #1164)

Fixes: Intel-Media-SDK#1165

cmake option() rewrites set() without FORCE flag which we tried
to use to instuct gtest to avoid installation path.

Signed-off-by: Dmitry Rogozhkin <[email protected]>
Fix for Intel-Media-SDK#1165

This patch keeps gtest google tests in-house avoiding their installation.
The idea is that user will run 'make test' or 'ctest' or execute tests
directly from the build tree rather than under installed environment. These
tests are intended to make sure that mediasdk behaves correctly before install.

Signed-off-by: Dmitry Rogozhkin <[email protected]>
We might have gtests elsewhere in the project, not only in tests
directory. Let's enable tests separately before including any
source directories.

Signed-off-by: Dmitry Rogozhkin <[email protected]>
Fixes: Intel-Media-SDK#1165

We may face situaiton that system has installed gtest/gmock which
will be incompatible with the version against which we linked our
tests. Hence, force using our own built gtest, gmock.

Signed-off-by: Dmitry Rogozhkin <[email protected]>
Fixes: Intel-Media-SDK#1285

This change allows builds against system installed gtest if
cmake -DUSE_SYSTEM_GTEST=ON is specified. Mind that this change
does not provide any configure level check over gtest. And it does not
provide proper target configuration if gtest is installed to custom
location. Build will work if gtest will happen to be in the right place
at the right time.

Signed-off-by: Dmitry Rogozhkin <[email protected]>
@dvrogozh
Copy link
Contributor Author

Dropping in a preference of later releases which has these changes.

@dvrogozh dvrogozh closed this Oct 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant