mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
fix compiling on MacOS
This commit is contained in:
@@ -9,6 +9,10 @@ set(CMAKE_CXX_STANDARD 14)
|
|||||||
include_directories("." "Console" "McZapkie")
|
include_directories("." "Console" "McZapkie")
|
||||||
file(GLOB HEADERS "*.h" "Console/*.h" "McZapkie/*.h")
|
file(GLOB HEADERS "*.h" "Console/*.h" "McZapkie/*.h")
|
||||||
|
|
||||||
|
if (APPLE)
|
||||||
|
set (CMAKE_EXE_LINKER_FLAGS "-pagezero_size 10000 -image_base 100000000")
|
||||||
|
endif()
|
||||||
|
|
||||||
option(USE_IMGUI_GL3 "Use OpenGL3+ imgui implementation" OFF)
|
option(USE_IMGUI_GL3 "Use OpenGL3+ imgui implementation" OFF)
|
||||||
option(WITH_UART "Compile with libserialport" OFF)
|
option(WITH_UART "Compile with libserialport" OFF)
|
||||||
|
|
||||||
|
|||||||
4
EU07.cpp
4
EU07.cpp
@@ -34,9 +34,9 @@ int main( int argc, char *argv[] )
|
|||||||
auto result { Application.init( argc, argv ) };
|
auto result { Application.init( argc, argv ) };
|
||||||
if( result == 0 ) {
|
if( result == 0 ) {
|
||||||
result = Application.run();
|
result = Application.run();
|
||||||
|
Application.exit();
|
||||||
}
|
}
|
||||||
Application.exit();
|
std::_Exit(0); // skip destructors, there are ordering errors which causes segfaults
|
||||||
std::_Exit(0); // skip destructors, there are ordering errors which causes segfaults
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
catch( std::bad_alloc const &Error )
|
catch( std::bad_alloc const &Error )
|
||||||
|
|||||||
Reference in New Issue
Block a user