diff --git a/xs/CMakeLists.txt b/xs/CMakeLists.txt index 617f79055..e00ce2412 100644 --- a/xs/CMakeLists.txt +++ b/xs/CMakeLists.txt @@ -10,6 +10,11 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux") add_compile_options(-std=c++11 -Wall) endif() +if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUXX) + # Adding -fext-numeric-literals to enable GCC extensions on definitions of quad float literals, which are required by Boost. + add_compile_options(-fext-numeric-literals) +endif() + # Where all the bundled libraries reside? set(LIBDIR ${CMAKE_CURRENT_SOURCE_DIR}/src/) # For the bundled boost libraries (boost::nowide)