Merge pull request #6886 from amosbird/cmp0075

Fix build error when cmake_minimum_required(3.12)
This commit is contained in:
alexey-milovidov 2019-09-11 02:03:01 +03:00 committed by GitHub
commit af4af8bc6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,3 +124,7 @@ CHECK_CXX_SOURCE_COMPILES("
}" }"
NEEDS_Z_PREFIX NEEDS_Z_PREFIX
) )
# See https://cmake.org/cmake/help/v3.14/policy/CMP0075.html. Without unsetting it breaks thrift.
set(CMAKE_REQUIRED_INCLUDES)
set(CMAKE_REQUIRED_LIBRARIES)