CMake: remove test for cxx11_random
Everyone has it, without exception. QRandomGenerator uses the Mersenne twister without checking, so you can't have Qt without this. This test was here only to produce an error at CMake time instead of at build time, but that test costs 650 ms for everyone running CMake without cached results. Change-Id: Ifbf974a4d10745b099b1fffd177753b6d4fc89d4 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
parent
d7a3733056
commit
f44072ca43
@ -158,21 +158,6 @@ std::future<int> f = std::async([]() { return 42; });
|
||||
}
|
||||
")
|
||||
|
||||
# cxx11_random
|
||||
qt_config_compile_test(cxx11_random
|
||||
LABEL "C++11 <random>"
|
||||
CODE
|
||||
"#include <random>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
/* BEGIN TEST: */
|
||||
std::mt19937 mt(0);
|
||||
/* END TEST: */
|
||||
return 0;
|
||||
}
|
||||
")
|
||||
|
||||
# cxx17_filesystem
|
||||
qt_config_compile_test(cxx17_filesystem
|
||||
LABEL "C++17 <filesystem>"
|
||||
@ -1056,11 +1041,6 @@ qt_configure_add_report_entry(
|
||||
MESSAGE "journald, syslog or slog2 integration is enabled. If your users intend to develop applications against this build, ensure that the IDEs they use either set QT_FORCE_STDERR_LOGGING to 1 or are able to read the logged output from journald, syslog or slog2."
|
||||
CONDITION QT_FEATURE_journald OR QT_FEATURE_syslog OR ( QNX AND QT_FEATURE_slog2 )
|
||||
)
|
||||
qt_configure_add_report_entry(
|
||||
TYPE ERROR
|
||||
MESSAGE "C++11 <random> is required and is missing or failed to compile."
|
||||
CONDITION NOT TEST_cxx11_random
|
||||
)
|
||||
qt_configure_add_report_entry(
|
||||
TYPE ERROR
|
||||
MESSAGE "Your C library does not provide sscanf_l or snprintf_l. You need to use libdouble-conversion for double/string conversion."
|
||||
|
@ -43,7 +43,6 @@
|
||||
#define QT_FEATURE_cborstreamreader -1
|
||||
#define QT_FEATURE_cborstreamwriter 1
|
||||
#define QT_CRYPTOGRAPHICHASH_ONLY_SHA1
|
||||
#define QT_FEATURE_cxx11_random (__has_include(<random>) ? 1 : -1)
|
||||
#define QT_FEATURE_cxx17_filesystem -1
|
||||
#define QT_NO_DATASTREAM
|
||||
#define QT_FEATURE_datestring 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user