Skip to content

Commit

Permalink
Disable warning in Libxml2 code
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalybuka committed Jan 20, 2017
1 parent da7f723 commit faa2d0e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmake/external/libxml2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ foreach(lib IN LISTS LIBXML2_LIBRARIES)
add_dependencies(${lib} ${LIBXML2_TARGET})
endforeach(lib)

set(LIBXML2_FLAGS "${EXTRA_FLAGS} -w")

include (ExternalProject)
ExternalProject_Add(${LIBXML2_TARGET}
PREFIX ${LIBXML2_TARGET}
Expand All @@ -40,8 +42,8 @@ ExternalProject_Add(${LIBXML2_TARGET}
--prefix=${LIBXML2_INSTALL_DIR}
CC=${CMAKE_C_COMPILER}
CXX=${CMAKE_CXX_COMPILER}
CFLAGS=${EXTRA_FLAGS}
CXXFLAGS=${EXTRA_FLAGS}
CFLAGS=${LIBXML2_FLAGS}
CXXFLAGS=${LIBXML2_FLAGS}
BUILD_COMMAND make -j ${CPU_COUNT} all VERBOSE=1
INSTALL_COMMAND make install
BUILD_BYPRODUCTS ${LIBXML2_BUILD_BYPRODUCTS}
Expand Down

0 comments on commit faa2d0e

Please sign in to comment.