message: Use -force_load instead of -all_load on MacOS
  The -all_load flag will apply to all future libraries added on the command line,
  while the -force_load flag only applies to the next library. Using the latter
  allows to selectively force load the specific libraries we want.
diff: @@ -21,9 +21,9 @@ endfunction()
  # factored out a bit.
  function(whole_archive_link target)
  if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
  - set(link_flags "-L${CMAKE_BINARY_DIR}/lib -Wl,-all_load ")
  + set(link_flags "-L${CMAKE_BINARY_DIR}/lib ")
  FOREACH(LIB ${ARGN})
  - string(CONCAT link_flags ${link_flags} "-l${LIB} ")
  + string(CONCAT link_flags ${link_flags} "-Wl,-force_load ${CMAKE_BINARY_DIR}/lib/lib${LIB}.a ")
  ENDFOREACH(LIB)
  else()
  set(link_flags "-L${CMAKE_BINARY_DIR}/lib -Wl,--whole-archive,")
  