-
-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake configuration fails with Qt 6.8.0 #255
Comments
Looking at open PR's, it seems that #253 may be able to address this issue. |
@cneben Can we please get some response from maintainers? This issue has been open for several months at this point, and is (in my humble opinion) easily remedied. |
For the record, here is a patch that works for me as a workaround: diff --git a/src/CMakeLists.qt6.txt b/src/CMakeLists.qt6.txt
index f242748..d0db6a6 100644
--- a/src/CMakeLists.qt6.txt
+++ b/src/CMakeLists.qt6.txt
@@ -7,14 +7,13 @@ set (qan_plugin_files
# Configure Qt
set(CMAKE_AUTOMOC ON)
-qt_wrap_cpp(qan_source_files, qan_header_files) # Creates .moc files from sources
set(CMAKE_AUTORCC ON)
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS $<$<CONFIG:Debug>:QT_QML_DEBUG>)
# Configure QuickQanava library ###############################################
list(APPEND qan_resources QuickQanava_static.qrc)
list(APPEND qan_resources GraphicalEffects6/QuickQanavaGraphicalEffects.qrc)
-add_library(QuickQanava STATIC ${qan_source_files} ${qan_header_files} ${qan_resources} ${quickcontainers_source_files} ${quickcontainers_header_files})
+qt_add_library(QuickQanava STATIC ${qan_source_files} ${qan_header_files} ${qan_resources} ${quickcontainers_source_files} ${quickcontainers_header_files})
target_include_directories(QuickQanava
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello! I recently switched to Qt 6.8 and started encountering a failure during cmake configuration, which makes it impossible to build anything.
Here is basic information about my setup:
add_subdirectory()
command. My program is later linked with the QuickQanava target.It seems that source of the problem is invalid syntax on this line, which means that this issue could be related to #229.
Please advise.
The text was updated successfully, but these errors were encountered: