mirror of
https://github.com/jezhiggins/arabica
synced 2024-12-27 21:58:30 +01:00
Conditionalize changes to CMakeLists.txt
This commit is contained in:
parent
d04316460c
commit
c88d200693
1 changed files with 6 additions and 2 deletions
|
@ -20,7 +20,9 @@ option(BUILD_ARABICA_EXAMPLES "Build all arabica examples" ON)
|
||||||
set_property(GLOBAL
|
set_property(GLOBAL
|
||||||
PROPERTY USE_FOLDERS ON)
|
PROPERTY USE_FOLDERS ON)
|
||||||
|
|
||||||
add_definitions("-Wno-parentheses-equality")
|
if (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
|
||||||
|
add_definitions("-Wno-parentheses-equality")
|
||||||
|
endif()
|
||||||
|
|
||||||
#
|
#
|
||||||
# Set the used xml backend
|
# Set the used xml backend
|
||||||
|
@ -30,8 +32,10 @@ add_definitions("-Wno-parentheses-equality")
|
||||||
if(NOT ARABICA_XML_BACKEND)
|
if(NOT ARABICA_XML_BACKEND)
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
set(ARABICA_XML_BACKEND USE_MSXML)
|
set(ARABICA_XML_BACKEND USE_MSXML)
|
||||||
else()
|
elseif(APPLE)
|
||||||
set(ARABICA_XML_BACKEND USE_LIBXML2)
|
set(ARABICA_XML_BACKEND USE_LIBXML2)
|
||||||
|
else()
|
||||||
|
set(ARABICA_XML_BACKEND USE_EXPAT)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue