From e04785604aa11c5c57e3a724751cb5fe7b5d08a4 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Sun, 24 Jul 2022 16:53:53 +0200 Subject: [PATCH] Make static_assert C++11 compatible static_assert without a message is C++17. Which we can't use 5 years later. --- cmake/ConfigureChecks.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/ConfigureChecks.cmake b/cmake/ConfigureChecks.cmake index 8bd74d809..f4b30c3d1 100644 --- a/cmake/ConfigureChecks.cmake +++ b/cmake/ConfigureChecks.cmake @@ -272,7 +272,7 @@ check_cxx_source_compiles(" #include int main() { - static_assert(WEXITSTATUS(0x007f) == 0x7f); + static_assert(WEXITSTATUS(0x007f) == 0x7f, \"This is our message we need to add because C++ is terrible\"); return 0; } "