mirror of
https://github.com/zeux/pugixml.git
synced 2024-12-27 13:33:17 +08:00
Merge pull request #391 from zeux/cmake-omg
Fix compatibility issue with CMake 3.10
This commit is contained in:
commit
0e3f1699ff
@ -7,5 +7,6 @@ include("${CMAKE_CURRENT_LIST_DIR}/pugixml-targets.cmake")
|
|||||||
# for compatibility.
|
# for compatibility.
|
||||||
if (NOT DEFINED PACKAGE_FIND_VERSION OR PACKAGE_FIND_VERSION VERSION_LESS "1.11")
|
if (NOT DEFINED PACKAGE_FIND_VERSION OR PACKAGE_FIND_VERSION VERSION_LESS "1.11")
|
||||||
add_library(pugixml INTERFACE IMPORTED)
|
add_library(pugixml INTERFACE IMPORTED)
|
||||||
target_link_libraries(pugixml INTERFACE pugixml::pugixml)
|
# Equivalent to target_link_libraries INTERFACE, but compatible with CMake 3.10
|
||||||
|
set_target_properties(pugixml PROPERTIES INTERFACE_LINK_LIBRARIES pugixml::pugixml)
|
||||||
endif ()
|
endif ()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user