Browse Source

Support LunaSVG 3.0+ CMake config in find module

Michael Ragazzon 1 year ago
parent
commit
8f582f2d7c
1 changed files with 5 additions and 0 deletions
  1. 5 0
      CMake/Modules/Findlunasvg.cmake

+ 5 - 0
CMake/Modules/Findlunasvg.cmake

@@ -16,6 +16,11 @@
 
 
 include(FindPackageHandleStandardArgs)
 include(FindPackageHandleStandardArgs)
 
 
+if(NOT TARGET lunasvg::lunasvg)
+	# Look for lunasvg 3.0+ official config
+	find_package("lunasvg" CONFIG QUIET)
+endif()
+
 if(NOT TARGET lunasvg::lunasvg)
 if(NOT TARGET lunasvg::lunasvg)
 	# Look for vcpkg port
 	# Look for vcpkg port
 	find_package("unofficial-lunasvg" CONFIG QUIET)
 	find_package("unofficial-lunasvg" CONFIG QUIET)