]> OCCT Git - occt.git/commitdiff
Configuration - CMake symbol isolation issue on Windows #373
authorjfa <jfa@opencascade.com>
Fri, 9 Feb 2024 12:29:15 +0000 (12:29 +0000)
committerdpasukhi <dpasukhi@opencascade.com>
Mon, 17 Feb 2025 12:52:41 +0000 (12:52 +0000)
Fixed Salome compilation problem on Windows by M.Bernhard

adm/cmake/occt_defs_flags.cmake

index fe11da2ccdfbc6f0dd711de5e1308a5dd7e4f4f3..0d14ab1d2b6c2acf20370001949ec9e116211239 100644 (file)
@@ -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()