message: Update lib path in whole_archive_link.
  The added library path is now specified explicitly wrt top-level build directory.
diff: @@ -21,12 +21,12 @@ endfunction()
  # factored out a bit.
  function(whole_archive_link target)
  if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
  - set(link_flags "-Llib -Wl,-all_load ")
  + set(link_flags "-L${CMAKE_BINARY_DIR}/lib -Wl,-all_load ")
  FOREACH(LIB ${ARGN})
  string(CONCAT link_flags ${link_flags} "-l${LIB} ")
  ENDFOREACH(LIB)
  else()
  - set(link_flags "-Llib -Wl,--whole-archive,")
  + set(link_flags "-L${CMAKE_BINARY_DIR}/lib -Wl,--whole-archive,")
  FOREACH(LIB ${ARGN})
  string(CONCAT link_flags ${link_flags} "-l${LIB},")
  ENDFOREACH(LIB)
  