]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt |
2 | index 11fa675..34cc9ed 100644 | |
3 | --- a/cmake/CMakeLists.txt | |
4 | +++ b/cmake/CMakeLists.txt | |
5 | @@ -20,6 +20,11 @@ set(${PROJECT_NAME}_INSTALL_SAMPLES OFF CACHE BOOL | |
6 | set(${PROJECT_NAME}_ONLY_LIBRARY OFF CACHE BOOL | |
7 | "Set to ON to only build markdown library (default is OFF)") | |
8 | ||
9 | +# MSVC deprecated warnings (C4996,strdup, ...) | |
10 | +if(MSVC) | |
11 | + add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS) | |
12 | +endif() | |
13 | + | |
14 | # Check headers | |
15 | include(CheckIncludeFile) | |
16 | check_include_file(libgen.h HAVE_LIBGEN_H) |