From c187c7dc4d182f814763daa5724cd86030afd965 Mon Sep 17 00:00:00 2001 From: offtkp Date: Sat, 2 Sep 2023 23:15:00 +0300 Subject: [PATCH] Thanks windows --- CMakeLists.txt | 7 ++++--- n64/core/n64_rdp.cxx | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a84e0aba..706c0815 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,6 +33,10 @@ endif() string(REPLACE ";" " " WARNINGS_FLAGS "${WARNINGS}") set(CMAKE_CXX_FLAGS "-g -O2") set(CMAKE_C_FLAGS "-g -O2") +# TODO: prettify +if (WIN32) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc") +endif() if (APPLE) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.2") else() @@ -43,9 +47,6 @@ set(OpenGL_GL_PREFERENCE GLVND) find_package(QT NAMES Qt6 REQUIRED COMPONENTS Widgets OpenGL OpenGLWidgets) find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets OpenGL OpenGLWidgets) -if (WIN32) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc") -endif() add_subdirectory(vendored/fmt) # add_compile_options(-fsanitize=address -fsanitize=undefined) diff --git a/n64/core/n64_rdp.cxx b/n64/core/n64_rdp.cxx index b15791dd..e0e1d8ee 100644 --- a/n64/core/n64_rdp.cxx +++ b/n64/core/n64_rdp.cxx @@ -1,3 +1,4 @@ +#include #include #include #include