diff --git a/CMakeLists.txt b/CMakeLists.txt index 387ef13..9f2da16 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,6 +51,7 @@ endif() # Specific flags for Visual C++ if(MSVC) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -TC") + add_definitions(-D_CRT_SECURE_NO_WARNINGS) endif() if(BUILD_SHARED_LIBS)