disable new ABI (can't catch ios_base::failure with new ABI)
This commit is contained in:
parent
67faf53825
commit
d2caf7d7ca
|
@ -104,11 +104,13 @@ if(MINGW)
|
|||
set(CMAKE_SHARED_LIBRARY_PREFIX "")
|
||||
endif(MINGW)
|
||||
|
||||
# enable Qt Widgets GUI, enable capslock detection
|
||||
# enable Qt Widgets GUI
|
||||
# disable new ABI (can't catch ios_base::failure with new ABI)
|
||||
add_definitions(
|
||||
-DGUI_QTWIDGETS
|
||||
-DMODEL_UNDO_SUPPORT
|
||||
-DPLATFORM_SPECIFIC_CAPSLOCK_DETECTION
|
||||
-D_GLIBCXX_USE_CXX11_ABI=0
|
||||
)
|
||||
|
||||
# check required Qt 5 modules
|
||||
|
|
|
@ -7,6 +7,9 @@ RCC_DIR = ./res
|
|||
QMAKE_CXXFLAGS += -std=c++11
|
||||
QMAKE_LFLAGS += -std=c++11
|
||||
|
||||
# disable new ABI (can't catch ios_base::failure with new ABI)
|
||||
DEFINES += _GLIBCXX_USE_CXX11_ABI=0
|
||||
|
||||
# variables to check target architecture
|
||||
win32-g++:QMAKE_TARGET.arch = $$QMAKE_HOST.arch
|
||||
win32-g++-32:QMAKE_TARGET.arch = x86
|
||||
|
|
Loading…
Reference in New Issue