diff --git a/CMakeLists.txt b/CMakeLists.txt index 7b15fbd5..6ac90b3b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()