diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 83a55d9d9..0b6743471 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,6 +69,10 @@ check_include_file_cxx ("boost/shared_ptr.hpp" HAVE_BOOST) check_library_exists (dl dlopen "" HAVE_LIBDL) check_function_exists (popen HAVE_POPEN) +if (MSVC) + set (CMAKE_CXX_FLAGS "/EHsc ${CMAKE_CXX_FLAGS}") +endif () + set (PCRE_REQUIRED_ARG "REQUIRED" CACHE STRING "required arg") find_package (PCRE ${PCRE_REQUIRED_ARG}) if (PCRE_FOUND) |