From baeed854684cb4d0f14f3848bad6392a0d2d2c30 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sat, 15 Apr 2023 18:03:09 -0400 Subject: [PATCH] update CMake files --- examples/COUPLE/plugin/CMakeLists.txt | 4 +--- examples/COUPLE/simple/CMakeLists.txt | 4 +--- examples/plugins/CMakeLists.txt | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/examples/COUPLE/plugin/CMakeLists.txt b/examples/COUPLE/plugin/CMakeLists.txt index f4064d3f65..14bef44ffa 100644 --- a/examples/COUPLE/plugin/CMakeLists.txt +++ b/examples/COUPLE/plugin/CMakeLists.txt @@ -23,9 +23,7 @@ endif() # and prints lots of pointless warnings about "unsafe" functions if(MSVC) if(CMAKE_C_COMPILER_ID STREQUAL "MSVC") - if(LAMMPS_EXCEPTIONS) - add_compile_options(/EHsc) - endif() + add_compile_options(/EHsc) endif() add_compile_definitions(_CRT_SECURE_NO_WARNINGS) endif() diff --git a/examples/COUPLE/simple/CMakeLists.txt b/examples/COUPLE/simple/CMakeLists.txt index 14c253e5a1..eed9a147bd 100644 --- a/examples/COUPLE/simple/CMakeLists.txt +++ b/examples/COUPLE/simple/CMakeLists.txt @@ -18,9 +18,7 @@ endif() # and prints lots of pointless warnings about "unsafe" functions if(MSVC) if(CMAKE_C_COMPILER_ID STREQUAL "MSVC") - if(LAMMPS_EXCEPTIONS) - add_compile_options(/EHsc) - endif() + add_compile_options(/EHsc) endif() add_compile_definitions(_CRT_SECURE_NO_WARNINGS) endif() diff --git a/examples/plugins/CMakeLists.txt b/examples/plugins/CMakeLists.txt index 688835de56..ef494fe941 100644 --- a/examples/plugins/CMakeLists.txt +++ b/examples/plugins/CMakeLists.txt @@ -36,9 +36,7 @@ else() add_compile_options(/Zc:__cplusplus) add_compile_options(/wd4244) add_compile_options(/wd4267) - if(LAMMPS_EXCEPTIONS) - add_compile_options(/EHsc) - endif() + add_compile_options(/EHsc) endif() add_compile_definitions(_CRT_SECURE_NO_WARNINGS) endif()