From: jfa Date: Fri, 9 Feb 2024 12:29:15 +0000 (+0000) Subject: Fixed Salome compilation problem on Windows by M.Bernhard X-Git-Tag: SALOME_9_13_V7_8_0~12 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=2fd591b3bbdcb0506c42c2317de320f17207145b;p=occt.git Fixed Salome compilation problem on Windows by M.Bernhard --- diff --git a/adm/cmake/occt_defs_flags.cmake b/adm/cmake/occt_defs_flags.cmake index 3d989abcd4..fddf3e8eff 100644 --- a/adm/cmake/occt_defs_flags.cmake +++ b/adm/cmake/occt_defs_flags.cmake @@ -26,7 +26,7 @@ endif() if (MSVC) # suppress C26812 on VS2019/C++20 (prefer 'enum class' over 'enum') - set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /fp:precise /wd\"26812\"") + set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /fp:precise /wd26812") # suppress warning on using portable non-secure functions in favor of non-portable secure ones add_definitions (-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE) else()