diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index ec28fdb06b..b5800fd1bb 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -145,6 +145,7 @@ if(MSVC) add_compile_options(/Zc:__cplusplus) add_compile_options(/wd4244) add_compile_options(/wd4267) + add_compile_options(/wd4250) add_compile_options(/EHsc) endif() add_compile_definitions(_CRT_SECURE_NO_WARNINGS) diff --git a/cmake/Modules/LAMMPSInterfacePlugin.cmake b/cmake/Modules/LAMMPSInterfacePlugin.cmake index 7d4c06184e..151e0a04f7 100644 --- a/cmake/Modules/LAMMPSInterfacePlugin.cmake +++ b/cmake/Modules/LAMMPSInterfacePlugin.cmake @@ -28,6 +28,7 @@ if(MSVC) add_compile_options(/Zc:__cplusplus) add_compile_options(/wd4244) add_compile_options(/wd4267) + add_compile_options(/wd4250) add_compile_options(/EHsc) endif() add_compile_definitions(_CRT_SECURE_NO_WARNINGS) diff --git a/examples/plugins/CMakeLists.txt b/examples/plugins/CMakeLists.txt index 750b5601da..8771b29121 100644 --- a/examples/plugins/CMakeLists.txt +++ b/examples/plugins/CMakeLists.txt @@ -35,6 +35,7 @@ else() add_compile_options(/Zc:__cplusplus) add_compile_options(/wd4244) add_compile_options(/wd4267) + add_compile_options(/wd4250) add_compile_options(/EHsc) endif() add_compile_definitions(_CRT_SECURE_NO_WARNINGS) diff --git a/tools/lammps-gui/CMakeLists.txt b/tools/lammps-gui/CMakeLists.txt index eaef9bba7f..af88c8d183 100644 --- a/tools/lammps-gui/CMakeLists.txt +++ b/tools/lammps-gui/CMakeLists.txt @@ -43,6 +43,7 @@ else() add_compile_options(/Zc:__cplusplus) add_compile_options(/wd4244) add_compile_options(/wd4267) + add_compile_options(/wd4250) if(LAMMPS_EXCEPTIONS) add_compile_options(/EHsc) endif() diff --git a/tools/phonon/CMakeLists.txt b/tools/phonon/CMakeLists.txt index f2f090cdbb..4cf70d57f3 100644 --- a/tools/phonon/CMakeLists.txt +++ b/tools/phonon/CMakeLists.txt @@ -27,6 +27,7 @@ if(MSVC) add_compile_options(/wd4711) add_compile_options(/wd4820) add_compile_options(/wd5045) + add_compile_options(/wd4250) add_compile_definitions(_CRT_SECURE_NO_WARNINGS) endif() diff --git a/tools/phonon/tricubic/CMakeLists.txt b/tools/phonon/tricubic/CMakeLists.txt index f3a229c410..8cd9477de9 100644 --- a/tools/phonon/tricubic/CMakeLists.txt +++ b/tools/phonon/tricubic/CMakeLists.txt @@ -12,6 +12,7 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON) if(MSVC) add_compile_options(/wd4244) add_compile_options(/wd4267) + add_compile_options(/wd4250) add_compile_definitions(_CRT_SECURE_NO_WARNINGS) endif()