From f2e6cee915d8ac79bed1355eddb20b52ed2e677c Mon Sep 17 00:00:00 2001 From: Isuru Samarathunga Date: Tue, 8 Jul 2025 13:42:28 +0530 Subject: [PATCH] fix msvc crt deprication warnings --- Src/IACore/CMakeLists.txt | 2 +- Src/IACore/inc/hpp/iacore/definitions.hpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Src/IACore/CMakeLists.txt b/Src/IACore/CMakeLists.txt index c516c62..6799b23 100644 --- a/Src/IACore/CMakeLists.txt +++ b/Src/IACore/CMakeLists.txt @@ -2,4 +2,4 @@ add_library(IACore STATIC imp/cpp/dummy.cpp) target_include_directories(IACore PUBLIC inc/hpp imp/inl) -target_compile_definitions(IACORE PUBLIC _CRT_SECURE_NO_WARNINGS) +target_compile_definitions(IACore PUBLIC _CRT_SECURE_NO_WARNINGS) diff --git a/Src/IACore/inc/hpp/iacore/definitions.hpp b/Src/IACore/inc/hpp/iacore/definitions.hpp index cf2b8bd..02ad0ac 100644 --- a/Src/IACore/inc/hpp/iacore/definitions.hpp +++ b/Src/IACore/inc/hpp/iacore/definitions.hpp @@ -28,7 +28,6 @@ #include #if defined (_MSC_VER ) -#define _CRT_SECURE_NO_WARNINGS #if !defined(__clang__) #error "IA software does not support compilation with MSVC. Please use Clang on Windows platforms." #endif