From 52921a9e13484319df2d4f1153521f3f5e12b932 Mon Sep 17 00:00:00 2001 From: Vitaly Svyastyn Date: Sun, 5 Nov 2017 19:33:01 +0600 Subject: More CMake (#1016) * Generate version information before build. * Removed /EHsc from compile options. * CMake files for the rest of protocols. * CMake 64 bit build. * CMake: precompiled headers. --- plugins/Db3x_mmap/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins/Db3x_mmap') diff --git a/plugins/Db3x_mmap/CMakeLists.txt b/plugins/Db3x_mmap/CMakeLists.txt index eee167c6a9..d30807aa46 100644 --- a/plugins/Db3x_mmap/CMakeLists.txt +++ b/plugins/Db3x_mmap/CMakeLists.txt @@ -1,3 +1,8 @@ file(GLOB SOURCES "src/*.h" "src/*.cpp" "src/dbtool/*.cpp" "res/*.rc") set(TARGET Dbx_mmap) + +# Just a workaround. Better to fix plugins that do not compile with this option. +# Even Microsoft recommends to use standard exception handling. +string(REPLACE "/EHsc" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) + include(${CMAKE_SOURCE_DIR}/cmake/plugin.cmake) \ No newline at end of file -- cgit v1.2.3