Starting with ICU version 75, it makes use of C++ 17 constructs, so KBibTeX no longer
compiles if C++ is still set to C++ 11.
With this change, the C++ standard is raised to C++17 if a recent ICU is detected.
Gbp-Pq: Name upstream_Switch-to-C-17-for-recent-ICU4C-versions.patch
)
if(ICU_FOUND)
add_definitions(-DHAVE_ICU)
+ if(ICU_VERSION GREATER_EQUAL 75)
+ # Starting with ICU 75, it makes use of C++17 instead of C++11 before
+ set(CMAKE_CXX_STANDARD 17)
+ endif()
endif()
option(