diff --git a/docs/examples/CMakeLists.txt b/docs/examples/CMakeLists.txt index f61d668392..358af24d07 100644 --- a/docs/examples/CMakeLists.txt +++ b/docs/examples/CMakeLists.txt @@ -38,7 +38,7 @@ foreach(_target IN LISTS check_PROGRAMS _all) # keep '_all' last list(TRANSFORM _examples_c APPEND ".c") add_library(${_target_name} OBJECT EXCLUDE_FROM_ALL ${_examples_c}) if(MSVC AND NOT CMAKE_C_COMPILER_ID STREQUAL "Clang") - # CMake generates a static library for the OBJECT target. Which triggers warnings: + # CMake generates a static library for the OBJECT target. Silence these 'lib.exe' warnings: # warning LNK4006: main already defined in ....obj; second definition ignored # warning LNK4221: This object file does not define any previously undefined public symbols, # so it will not be used by any link operation that consumes this library