Mercurial > minori
comparison dep/pugixml/CMakeLists.txt @ 123:a45edd073f9e
deps/pugixml: update to v1.14.0
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 08 Nov 2023 21:40:02 -0500 |
parents | d10b6c6b432e |
children |
comparison
equal
deleted
inserted
replaced
122:bc218c9d2ea6 | 123:a45edd073f9e |
---|---|
1 cmake_minimum_required(VERSION 3.4) | 1 cmake_minimum_required(VERSION 3.5) |
2 project(pugixml VERSION 1.13 LANGUAGES CXX) | 2 |
3 # Policy configuration; this *MUST* be specified before project is defined | |
4 if(POLICY CMP0091) | |
5 cmake_policy(SET CMP0091 NEW) # Enables use of MSVC_RUNTIME_LIBRARY | |
6 endif() | |
7 | |
8 project(pugixml VERSION 1.14 LANGUAGES CXX) | |
3 | 9 |
4 include(CMakePackageConfigHelpers) | 10 include(CMakePackageConfigHelpers) |
5 include(CMakeDependentOption) | 11 include(CMakeDependentOption) |
6 include(GNUInstallDirs) | 12 include(GNUInstallDirs) |
7 include(CTest) | 13 include(CTest) |
41 # Advanced options from pugiconfig.hpp | 47 # Advanced options from pugiconfig.hpp |
42 option(PUGIXML_NO_XPATH "Disable XPath" OFF) | 48 option(PUGIXML_NO_XPATH "Disable XPath" OFF) |
43 option(PUGIXML_NO_STL "Disable STL" OFF) | 49 option(PUGIXML_NO_STL "Disable STL" OFF) |
44 option(PUGIXML_NO_EXCEPTIONS "Disable Exceptions" OFF) | 50 option(PUGIXML_NO_EXCEPTIONS "Disable Exceptions" OFF) |
45 mark_as_advanced(PUGIXML_NO_XPATH PUGIXML_NO_STL PUGIXML_NO_EXCEPTIONS) | 51 mark_as_advanced(PUGIXML_NO_XPATH PUGIXML_NO_STL PUGIXML_NO_EXCEPTIONS) |
46 | |
47 # Policy configuration | |
48 if(POLICY CMP0091) | |
49 cmake_policy(SET CMP0091 NEW) # Enables use of MSVC_RUNTIME_LIBRARY | |
50 endif() | |
51 | 52 |
52 set(PUGIXML_PUBLIC_DEFINITIONS | 53 set(PUGIXML_PUBLIC_DEFINITIONS |
53 $<$<BOOL:${PUGIXML_WCHAR_MODE}>:PUGIXML_WCHAR_MODE> | 54 $<$<BOOL:${PUGIXML_WCHAR_MODE}>:PUGIXML_WCHAR_MODE> |
54 $<$<BOOL:${PUGIXML_COMPACT}>:PUGIXML_COMPACT> | 55 $<$<BOOL:${PUGIXML_COMPACT}>:PUGIXML_COMPACT> |
55 $<$<BOOL:${PUGIXML_NO_XPATH}>:PUGIXML_NO_XPATH> | 56 $<$<BOOL:${PUGIXML_NO_XPATH}>:PUGIXML_NO_XPATH> |