This avoids the spurious message:
Could NOT find Z3 (missing: Z3_LIBRARIES Z3_INCLUDE_DIR) (Required is at least version "4.5")
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311858
91177308-0d34-0410-b5e6-
96231b3b80d8
set(CLANG_HAVE_LIBXML 1)
endif()
-find_package(Z3 4.5)
-
include(CheckIncludeFile)
check_include_file(sys/resource.h CLANG_HAVE_RLIMITS)
endif()
if(CLANG_ANALYZER_BUILD_Z3)
+ find_package(Z3 4.5)
if(Z3_FOUND)
set(CLANG_ANALYZER_WITH_Z3 1)
else()