Allow building against tagparser 10

This commit is contained in:
Martchus 2020-12-05 21:10:43 +01:00
parent 131772f1df
commit f7bcefe0d1
1 changed files with 6 additions and 1 deletions

View File

@ -196,7 +196,12 @@ if (WIDGETS_GUI OR QUICK_GUI)
endif ()
# find tagparser
find_package(tagparser${CONFIGURATION_PACKAGE_SUFFIX} 9.3.0 REQUIRED)
set(CMAKE_FIND_PACKAGE_SORT_ORDER NATURAL)
if (CMAKE_VERSION VERSION_LESS 3.19)
find_package(tagparser${CONFIGURATION_PACKAGE_SUFFIX} 9.3.0 REQUIRED)
else ()
find_package(tagparser${CONFIGURATION_PACKAGE_SUFFIX} 9.3.0...10.0.0 REQUIRED)
endif ()
use_tag_parser()
# enable experimental JSON export