From c5b7c987c43fbc3c7a79df58e7ca7a3cef3edf3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Skowro=C5=84ski?= Date: Sun, 26 Mar 2017 09:58:35 +0200 Subject: [PATCH] Fix building with GCC and Qt5. issue #0002986 --- src/Mod/Path/App/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/Path/App/CMakeLists.txt b/src/Mod/Path/App/CMakeLists.txt index 0816c7d077..8a17381fc1 100644 --- a/src/Mod/Path/App/CMakeLists.txt +++ b/src/Mod/Path/App/CMakeLists.txt @@ -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)