Skip to content

Commit 68a92aa

Browse files
authored
Merge pull request #384 from mathstuf/update-1.11-release-notes
Update 1.11 release notes
2 parents 7a9da11 + d1d415e commit 68a92aa

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

docs/manual.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2156,6 +2156,9 @@ Maintenance release. Changes:
21562156
. Fix Wzero-as-null-pointer-constant warnings in pugixml.hpp
21572157
. Work around several static analysis false positives
21582158

2159+
* Build system changes
2160+
. The CMake package for pugixml now provides a `pugixml::pugixml` target rather than a `pugixml` target. A compatibility `pugixml` target is provided if at least version 1.11 is not requested.
2161+
21592162
[[v1.10]]
21602163
=== v1.10 ^2019-09-15^
21612164

scripts/pugixml-config.cmake.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
@PACKAGE_INIT@
22

33
include("${CMAKE_CURRENT_LIST_DIR}/pugixml-targets.cmake")
4+
5+
# If the user is not requiring 1.11 (either by explicitly requesting an older
6+
# version or not requesting one at all), provide the old imported target name
7+
# for compatibility.
8+
if (NOT DEFINED PACKAGE_FIND_VERSION OR PACKAGE_FIND_VERSION VERSION_LESS "1.11")
9+
add_library(pugixml ALIAS pugixml::pugixml)
10+
endif ()

0 commit comments

Comments
 (0)