Fix user-defined literal detection for Intel C++ compiler

This commit is contained in:
Dean Moldovan
2016-05-02 23:51:37 +02:00
parent b64d13a357
commit 3a04ebf14f
4 changed files with 33 additions and 2 deletions

View File

@ -63,4 +63,11 @@ check_cxx_source_compiles("
class C { void operator=(const C&); };
int main() { static_assert(!std::is_copy_assignable<C>::value, \"\"); }"
SUPPORTS_TYPE_TRAITS)
# Check if user-defined literals are available
check_cxx_source_compiles("
void operator\"\" _udl(long double);
int main() {}"
SUPPORTS_USER_DEFINED_LITERALS)
set(CMAKE_REQUIRED_FLAGS )