Skip to content

Commit 0e3f169

Browse files
authored
Merge pull request #391 from zeux/cmake-omg
Fix compatibility issue with CMake 3.10
2 parents 9079552 + e2bc4f4 commit 0e3f169

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: scripts/pugixml-config.cmake.in

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ include("${CMAKE_CURRENT_LIST_DIR}/pugixml-targets.cmake")
77
# for compatibility.
88
if (NOT DEFINED PACKAGE_FIND_VERSION OR PACKAGE_FIND_VERSION VERSION_LESS "1.11")
99
add_library(pugixml INTERFACE IMPORTED)
10-
target_link_libraries(pugixml INTERFACE pugixml::pugixml)
10+
# Equivalent to target_link_libraries INTERFACE, but compatible with CMake 3.10
11+
set_target_properties(pugixml PROPERTIES INTERFACE_LINK_LIBRARIES pugixml::pugixml)
1112
endif ()

0 commit comments

Comments
 (0)