Fix building with GCC and Qt5.

issue #0002986
This commit is contained in:
Mateusz Skowroński
2017-03-26 09:58:35 +02:00
committed by wmayer
parent f225f3e0cb
commit 8eeb4c9ddc

View File

@@ -2,6 +2,9 @@ if(MSVC)
add_definitions(-DHAVE_ACOSH -DHAVE_ASINH -DHAVE_ATANH)
else(MSVC)
add_definitions(-DHAVE_LIMITS_H -DHAVE_CONFIG_H)
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
add_definitions(-fext-numeric-literals) #fix for gcc and qt5
endif()
endif(MSVC)