CMake: fix disable msvc warning on wrong target

This commit is contained in:
Markus Reitböck
2025-09-12 20:24:54 +02:00
committed by Chris Hennes
parent 817ffc5782
commit b2c8f4b084

View File

@@ -1531,7 +1531,7 @@ target_link_libraries(FreeCADGui PUBLIC ${FreeCADGui_LIBS})
if (MSVC)
target_compile_definitions(FreeCADGui PRIVATE WIN32_LEAN_AND_MEAN)
target_compile_options(FreeCADApp PRIVATE /wd4251 /wd4273 /wd4275)
target_compile_options(FreeCADGui PRIVATE /wd4251 /wd4273 /wd4275)
endif()
if (FREECAD_WARN_ERROR)