CMake Warning \(dev\) at imported-target.cmake:[0-9]+ \(add_library\):
  The 'IMPORTED' target 'NS::lib2' uses the generator-expression
  '\$<LINK_LIBRARY>' with the feature 'whole_archive', which is undefined or
  unsupported.

  Did you miss to define it by setting variables
  "CMAKE_C_LINK_LIBRARY_USING_whole_archive" and
  "CMAKE_C_LINK_LIBRARY_USING_whole_archive_SUPPORTED"\?
Call Stack \(most recent call first\):
  CMakeLists.txt:[0-9]+ \(include\)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at imported-target.cmake:[0-9]+ \(add_library\):
  Feature 'whole_archive', specified through generator-expression
  '\$<LINK_LIBRARY>' to link target 'lib', is not supported for the 'C' link
  language.
Call Stack \(most recent call first\):
  CMakeLists.txt:[0-9]+ \(include\)
