-
Notifications
You must be signed in to change notification settings - Fork 44
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
Update to diagnostics/qt to reflect new cmake behavior. #788
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #788 +/- ##
=======================================
Coverage 94.0% 94.0%
=======================================
Files 367 367
Lines 17229 17229
=======================================
Hits 16197 16197
Misses 1032 1032 |
clang is generating warnings CMake Warning at config/vendor_libraries.cmake:319 (find_package):
By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5", but
CMake did not find one.
Could not find a package configuration file provided by "Qt5" with any of
the following names:
Qt5Config.cmake
qt5-config.cmake
Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
to a directory containing one of the above files. If "Qt5" provides a
separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
config/vendor_libraries.cmake:635 (setupQt)
config/vendor_libraries.cmake:797 (setupVendorLibrariesUnix)
CMakeLists.txt:95 (setupVendorLibraries) I'm looking into it. |
@keadyk It looks like there is a remaining configure warning for clang and valgrind builds. I'll deal with that as a separate issue. I'm rerunning the snow tests right now. Trinitite is on DST. |
Snow builds look okay. There are warnings related to IPO for release builds. I'm working with Doug to fix that (we might just IPO off). Again, let's deal with that later. We need to get the regressions running again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm! My comments are minor :)
+ After upgrading to cmake-3.17.0, our one Qt example failed to configure or build. I have updated build system logic to match what cmake-3.17+ expects for Qt applications. + Greatly simplify Qt discovery in `vendor_libraries.cmake`, but require Qt5 (disallow Qt3 or Qt4). + When building `diagnostics/qt` require cmake-3.17.0+: + Begin using `CMAKE_AUTOUIC` and `CMAKE_AUTORCC`. + CMake no longer requries the use of the macros `qt5_wrap_ui` or `add_resources`. + `.ui` files are now treated like source files. + Add code to delete move ctors and move assignment operators. + Update default dev env to load cmake/3.17.0 on CTS-1 and ATS-1.
1bf827e
to
8df05e3
Compare
I will plan to merge when the latest github checks pass, unless you object @KineticTheory |
Background
Purpose of Pull Request
Description of changes
vendor_libraries.cmake
, but require Qt5 (disallow Qt3 or Qt4).diagnostics/qt
require cmake-3.17.0+:CMAKE_AUTOUIC
andCMAKE_AUTORCC
.qt5_wrap_ui
oradd_resources
..ui
files are now treated like source files.Status