message: Make sure to build pthread and getopt before realm-objects
diff: @@ -194,6 +194,7 @@ if(APPLE)
  endif()
  if(CMAKE_SYSTEM_NAME MATCHES "^Windows")
  + add_dependencies(realm-objects pthread_win32 getopt_win32)
  set_property(TARGET realm-objects APPEND PROPERTY COMPILE_DEFINITIONS PTW32_STATIC_LIB)
  list(APPEND REALM_EXTRA_LIBS pthread_win32 getopt_win32)
  endif()
  