Skip to content

Commit

Permalink
added xpath enabled compile definition (will be inherited)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Wirtz committed Apr 9, 2015
1 parent 1d47b52 commit e85947d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,8 @@ IF( ${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND ${CMAKE_SYSTEM_PROCESSOR} STREQUAL
ENDIF( ${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" )

ADD_LIBRARY( ${LIBRARY_TARGET_NAME} ${LIBRARY_BUILD_TYPE} ${XML2_SRCS} ${PUBLIC_HDRS} ${PRIVATE_HDRS} )
# Add the necessary flag to tell that XPATH is enabled
target_compile_definitions(${LIBRARY_TARGET_NAME} PUBLIC LIBXML_XPATH_ENABLED)

IF( ZLIB_FOUND )
TARGET_LINK_LIBRARIES( ${LIBRARY_TARGET_NAME} z)
Expand Down

0 comments on commit e85947d

Please sign in to comment.