vcpkg/ports/tinyxml2/vcpkg-cmake-wrapper.cmake

6 lines
223 B
CMake

_find_package(${ARGS})
if(TARGET tinyxml2_static AND NOT TARGET tinyxml2)
_add_library(tinyxml2 INTERFACE IMPORTED)
set_target_properties(tinyxml2 PROPERTIES INTERFACE_LINK_LIBRARIES "tinyxml2_static")
endif()