diff options
Diffstat (limited to 'cpp')
| -rw-r--r-- | cpp/CMakeLists.txt | 9 | ||||
| -rw-r--r-- | cpp/src/CMakeLists.txt | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index dbed67efea..68ac7b317a 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -30,6 +30,15 @@ set (qpidc_version ${QPID_VERSION_MAJOR}.${QPID_VERSION_MINOR}) enable_testing() include (CTest) +if (MSVC) + # Change warning C4996 from level 1 to level 4. These are real and shouldn't + # be completely ignored, but they're pretty well checked out and will throw + # a run-time error if violated. + # "warning C4996: 'std::equal': Function call with parameters that may + # be unsafe..." + add_definitions(/w44996) +endif (MSVC) + # Overall packaging/install options. # This section also has all the setup for various packaging-specific options. set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE") diff --git a/cpp/src/CMakeLists.txt b/cpp/src/CMakeLists.txt index 70835746fb..44dea3a155 100644 --- a/cpp/src/CMakeLists.txt +++ b/cpp/src/CMakeLists.txt @@ -452,7 +452,6 @@ if (CMAKE_SYSTEM_NAME STREQUAL Windows) /D "_CRT_NONSTDC_NO_WARNINGS" /D "NOMINMAX" /D "WIN32_LEAN_AND_MEAN" - /D "_SCL_SECURE_NO_WARNINGS" /wd4244 /wd4800 /wd4355 |
