Fix build error when cmake_minimum_required(3.12)

This commit is contained in:
Amos Bird 2019-09-10 20:46:39 +08:00
parent aa0e3fd0d1
commit 7b30835b13

View File

@ -124,3 +124,7 @@ CHECK_CXX_SOURCE_COMPILES("
}"
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)