Commit Graph

5 Commits

Author SHA1 Message Date
Heiko Becker
1606b0eecc build: Use imported targets for GTest
Raises the cmake requirement to 3.5.0 (released in March 2016) but
we don't need to manually mess with INCLUDE_DIRS and linking to a
thread library anymore.
2018-12-22 17:15:00 +01:00
Benedikt Morbach
2f8bc8a0a8 pass ${SYDBOX_ACTIVE} through test runner
fixes tests under sydbox
escaped to make it take the value when the test is being run not when
the command is generated

Change-Id: I86d7b8a4d4e142dc3ef912b09aaa52c96b1d8a50
2016-12-19 13:32:49 +01:00
Heiko Becker
f1cb2cfd49 build: Use the imported target for linking to pthread
Our required cmake version is new enough (>=3.1) and usage of the
imported target is recommended by cmake's documentation [1]. Furthermore,
according to the docs THREADS_PREFER_PTHREAD_FLAG can only be used
with the imported target.

[1] https://cmake.org/cmake/help/v3.7/module/FindThreads.html
2016-12-13 15:09:57 -08:00
Saleem Abdulrasool
e8ff6e6d14 build: explicitly link against threads in gtests
In the case the googletest library is built static and was built with threading,
the library may have an implicit dependency which is unrecorded.  Add an
explicit link against the threading library.  The slight overlinkage is
inconsequential as it is for tests only.
2016-12-03 16:33:18 -08:00
Saleem Abdulrasool
a8c9e5d64d build: introduce cmake based build system 2016-11-30 08:25:19 -08:00