diff --git a/CMakeLists.txt b/CMakeLists.txt index b598c50..694e486 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,10 @@ project(rrcSmall) set(CMAKE_CXX_STANDARD 14) +if (NOT MSVC) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions") +endif() + set(SOURCE_FILES src/ImageFormat.cpp src/ImageFormat.h src/SmallFirmwareFormat.cpp src/SmallFirmwareFormat.h