title: meson doesn't link library
body: <p>I'm tring to a fix a meson build not picking up on a link library. The <code>meson.build</code> file has</p>
  <pre class="lang-py prettyprint-override"><code>tz_dep = dependency(
      'date',
      default_options : [ 'use_system_tzdb=true' ],
      fallback: [ 'date', 'tz_dep' ]
  )
  
  # ...
  
  executable(
      'waybar',
      src_files,
      dependencies: [
          # ...
          tz_dep
      ],
      include_directories: [include_directories('include')],
      install: true,
  )
  </code></pre>
  <p>and it does find <code>/usr/lib/x86_64-linux-gnu/cmake/date/dateConfig.cmake</code>. The corresponding <code>dateTargets-none.cmake</code> is</p>
  <pre><code>#----------------------------------------------------------------
  # Generated CMake target import file for configuration &quot;None&quot;.
  #----------------------------------------------------------------
  
  # Commands may need to know the format version.
  set(CMAKE_IMPORT_FILE_VERSION 1)
  
  # Import target &quot;date::date-tz&quot; for configuration &quot;None&quot;
  set_property(TARGET date::date-tz APPEND PROPERTY IMPORTED_CONFIGURATIONS NONE)
  set_target_properties(date::date-tz PROPERTIES
    IMPORTED_LOCATION_NONE &quot;${_IMPORT_PREFIX}/lib/x86_64-linux-gnu/libdate-tz.so.2.4.1&quot;
    IMPORTED_SONAME_NONE &quot;libdate-tz.so.2.4.1&quot;
    )
  
  list(APPEND _IMPORT_CHECK_TARGETS date::date-tz )
  list(APPEND _IMPORT_CHECK_FILES_FOR_date::date-tz &quot;${_IMPORT_PREFIX}/lib/x86_64-linux-gnu/libdate-tz.so.2.4.1&quot; )
  
  # Commands beyond this point should not need to know the version.
  set(CMAKE_IMPORT_FILE_VERSION)
  </code></pre>
  <p>However, meson does not link <code>/usr/lib/x86_64-linux-gnu/libdate-tz.so.2.4.1</code>.</p>
  <p>I'm not sure if the problem is in meson or the cmake config. I can provide more details if required.</p>