Conditionalize changes to CMakeLists.txt

This commit is contained in:
Stefan Radomski 2013-01-07 03:04:55 +01:00
parent d04316460c
commit c88d200693

View file

@ -20,7 +20,9 @@ option(BUILD_ARABICA_EXAMPLES "Build all arabica examples" ON)
set_property(GLOBAL
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
@ -30,8 +32,10 @@ add_definitions("-Wno-parentheses-equality")
if(NOT ARABICA_XML_BACKEND)
if(WIN32)
set(ARABICA_XML_BACKEND USE_MSXML)
else()
elseif(APPLE)
set(ARABICA_XML_BACKEND USE_LIBXML2)
else()
set(ARABICA_XML_BACKEND USE_EXPAT)
endif()
endif()