diff options
author | Jakub Zakrzewski <slither.jz@gmail.com> | 2019-04-07 12:43:38 +0200 |
---|---|---|
committer | Jakub Zakrzewski <slither.jz@gmail.com> | 2019-04-10 19:12:28 +0200 |
commit | be17f298ff508d62d493d4a8d43e56a1e2861a50 (patch) | |
tree | 827ce8d6f32fb7359dbfc2bf6245cb3a15724fb2 /tests | |
parent | 639cfeb0f8f0f869d9cdd3756f72935f382b179a (diff) |
cmake: avoid linking executable for some tests with cmake 3.6+
With CMAKE_TRY_COMPILE_TARGET_TYPE set to STATIC_LIBRARY, the try_compile()
(which is used by check_c_source_compiles()) will build static library
instead of executable. This avoids linking additional libraries in and thus
speeds up those checks a little.
This commit also avoids #3743 (GSSAPI build errors) on itself with cmake
3.6 or above. That issue was fixed separately for all versions.
Ref: #3744
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions