From 47a6664845795c1719316ed1ad101c35260d6faf Mon Sep 17 00:00:00 2001 From: "N. Pattakos" Date: Fri, 7 Jan 2022 23:10:47 +0100 Subject: [PATCH] fix warning: getenv not secure Just silence the warning. Yes, the Right Thing to do would be to use the newer and safer ways instead of getenv, but silencing it is simpler and suffices for this project's needs :) --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 292d9f4..e4b7002 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,6 +33,7 @@ message(STATUS "Found ASSIMP in ${ASSIMP_INCLUDE_DIR}") if(WIN32) set(LIBS glfw3 opengl32 assimp freetype irrKlang) + add_definitions(-D_CRT_SECURE_NO_WARNINGS) elseif(UNIX AND NOT APPLE) set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall") find_package(OpenGL REQUIRED)