Add an option to use tinyxml instead of pugixml.
This commit is contained in:
+10
-1
@@ -1,10 +1,19 @@
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
project(csoap)
|
||||
|
||||
option(CSOAP_USE_TINYXML "Use TinyXml instead of PugiXml?" ON)
|
||||
|
||||
if(CSOAP_USE_TINYXML)
|
||||
add_definitions(-DCSOAP_USE_TINYXML)
|
||||
|
||||
# TinyXml uses STL.
|
||||
add_definitions(-DTIXML_USE_STL)
|
||||
endif()
|
||||
|
||||
add_definitions(-DUNICODE -D_UNICODE)
|
||||
|
||||
if(MSVC)
|
||||
# Win7 (asio needs this)
|
||||
# Win7 (Boost.Asio needs this)
|
||||
add_definitions(-D_WIN32_WINNT=0x0601)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user