Revert "Don't expect the UDL definition for GCC < 4.9

This reverts commit 4d654c09e5.
This commit is contained in:
Dana Jansens 2023-09-17 22:43:00 -04:00
parent c282648961
commit f960d2fb75

View File

@ -177,12 +177,6 @@ set(CMAKE_REQUIRED_FLAGS )
if (NOT SUPPORTS_USER_DEFINED_LITERALS) if (NOT SUPPORTS_USER_DEFINED_LITERALS)
set (SUPPORTS_USER_DEFINED_LITERALS OFF) set (SUPPORTS_USER_DEFINED_LITERALS OFF)
endif () endif ()
if (SUPPORTS_USER_DEFINED_LITERALS AND CMAKE_COMPILER_IS_GNUCXX)
# GCC before 4.9 is not supported for user-defined literals as it requires an
# invalid syntax in their definition.
set (SUPPORTS_USER_DEFINED_LITERALS
$<IF:$<$<VERSION_LESS:$<CXX_COMPILER_VERSION>,4.9.0>,OFF,ON>
endif()
# Make sure that compiler features detected in the header # Make sure that compiler features detected in the header
# match the features detected in CMake. # match the features detected in CMake.