- The Autotools build system no longer looks for `python` binaries. The Python
interpreter is unconditionally assumed to be `python3`. The configure option
`--enable-python` is now an alias for `--enable-python3`.
+- The CMake build system, when building `gvedit`, will now look for and use Qt6
+ in preference over Qt5. #2233
### Fixed
if(with_gvedit)
- find_package(Qt5 COMPONENTS Core PrintSupport Widgets REQUIRED)
+ find_package(Qt6 COMPONENTS Core PrintSupport Widgets)
+ if(Qt6_FOUND)
+ set(QT_LIBS Qt6::Core Qt6::PrintSupport Qt6::Widgets)
+ else()
+ find_package(Qt5 COMPONENTS Core PrintSupport Widgets REQUIRED)
+ set(QT_LIBS Qt5::Core Qt5::PrintSupport Qt5::Widgets)
+ endif()
add_executable(gvedit
csettings.cpp
gvc
)
- target_link_libraries(gvedit PRIVATE Qt5::Core Qt5::PrintSupport Qt5::Widgets)
+ target_link_libraries(gvedit PRIVATE ${QT_LIBS})
if(EXPAT_FOUND)
target_include_directories(gvedit SYSTEM PRIVATE ${EXPAT_INCLUDE_DIRS})