mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-02 02:22:31 +00:00
[CMake] Move libxml2 stuff from clang to llvm/cmake.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170225 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b453e16855
commit
63cab6c9d2
@ -294,6 +294,11 @@ else()
|
|||||||
set(ENABLE_PIC 0)
|
set(ENABLE_PIC 0)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
find_package(LibXml2)
|
||||||
|
if (LIBXML2_FOUND)
|
||||||
|
set(CLANG_HAVE_LIBXML 1)
|
||||||
|
endif ()
|
||||||
|
|
||||||
include(CheckCXXCompilerFlag)
|
include(CheckCXXCompilerFlag)
|
||||||
|
|
||||||
check_cxx_compiler_flag("-Wno-variadic-macros" SUPPORTS_NO_VARIADIC_MACROS_FLAG)
|
check_cxx_compiler_flag("-Wno-variadic-macros" SUPPORTS_NO_VARIADIC_MACROS_FLAG)
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
/* Bug report URL. */
|
/* Bug report URL. */
|
||||||
#define BUG_REPORT_URL "${BUG_REPORT_URL}"
|
#define BUG_REPORT_URL "${BUG_REPORT_URL}"
|
||||||
|
|
||||||
|
/* Define if we have libxml2 */
|
||||||
|
#cmakedefine CLANG_HAVE_LIBXML ${CLANG_HAVE_LIBXML}
|
||||||
|
|
||||||
/* Relative directory for resource files */
|
/* Relative directory for resource files */
|
||||||
#define CLANG_RESOURCE_DIR "${CLANG_RESOURCE_DIR}"
|
#define CLANG_RESOURCE_DIR "${CLANG_RESOURCE_DIR}"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user