We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In Qt 5.11, QT5_USE_MODULES macro is deprecated. This makes compilation to fail.
QT5_USE_MODULES
Not really making a pull request, but just a simple patch code to fix the issue. Feel free to merge.
--- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,7 +74,7 @@ ADD_LIBRARY(qtspell SHARED ${qtspell_SRCS} ${qtspell_MOC} ${qtspell_HDRS} ${qtspell_MOC_HDRS} ${qtspell_QM}) IF(USE_QT5) - QT5_USE_MODULES(qtspell Widgets) + TARGET_LINK_LIBRARIES(qtspell Qt5::Core Qt5::Widgets) ELSE(USE_QT5) QT4_USE_MODULES(qtspell Core Gui) ENDIF(USE_QT5) @@ -92,7 +92,7 @@ IF(${BUILD_STATIC_LIBS}) ADD_LIBRARY(qtspell-static STATIC ${qtspell_SRCS} ${qtspell_MOC} ${qtspell_HDRS} ${qtspell_MOC_HDRS} ${qtspell_QM}) IF(USE_QT5) - QT5_USE_MODULES(qtspell-static Widgets) + TARGET_LINK_LIBRARIES(qtspell-static Qt5::Core Qt5::Widgets) ELSE(USE_QT5) QT4_USE_MODULES(qtspell-static Core Gui) ENDIF(USE_QT5) @@ -124,7 +124,7 @@ ENDIF(USE_QT5) ADD_EXECUTABLE(example examples/example.cpp ${example_MOC}) IF(USE_QT5) - QT5_USE_MODULES(example Widgets) + TARGET_LINK_LIBRARIES(example Qt5::Core Qt5::Widgets) ELSE(USE_QT5) QT4_USE_MODULES(example Core Gui) ENDIF(USE_QT5)
The text was updated successfully, but these errors were encountered:
Applied, thanks!
Sorry, something went wrong.
np 👍
Fix an issue with a deprecated macro and add necessary doxygen requir…
fdf36f8
…ement See [1]. [1]: manisandro/qtspell#5
No branches or pull requests
In Qt 5.11,
QT5_USE_MODULES
macro is deprecated. This makes compilation to fail.Not really making a pull request, but just a simple patch code to fix the issue. Feel free to merge.
The text was updated successfully, but these errors were encountered: