Fix a bug in Minimizer::RunCallbacks.

Solver::Summary::message was not being updated when the solver
terminated because of a user's iteration callback indicating
success or failure.

Thanks to Sergey Sharybin for reporting this.

Change-Id: I27e6e5eed086920ddf765461b0159417ac79d7b3
Export Ceres compile definitions to targets compiled against Ceres.

- Previously all Ceres compile definitions were private to Ceres, that
  is they were not exported to users via the CMake export mechanism.
- Now that we use compile definitions in public (installed) Ceres
  headers, we need to export the Ceres compile definitions.
- If we did not do this, then the client's code 'see's' a different
  version of the Ceres headers to those which were in fact compiled,
  or in the case of shared_ptr, may not find the required header.

- This patch makes use of the new, in CMake 2.8.11, function:
  target_compile_definitions() to export all of the Ceres compile
  definitions using CMake's export functionality.
- For CMake versions < 2.8.11, we have to use the blunter instrument of
  calling add_definitions() in CeresConfig.cmake (invoked by a call to
  find_package(Ceres)).  This is messy because it ends up adding the
  Ceres compile definitions to any target declared in the user's code
  after the call to find_package(Ceres).  Although this should do no
  harm as all of our defines are prefaced with CERES_, so any
  unintentional name clashes are unlikely.

Change-Id: I5dea80949190eaf4fb08ea4ac568ce28c32dd4e0
Add the (2,4,8) template specialization.

Change-Id: I058bcebdd1725031d573404133b184d6f27dc005
Lazily initialize the bounds arrays in ParameterBlock.

Problems that do not use bounds do not have to pay the
price of storing bounds constraints.

Also replace the raw pointer access to the upper and
lower bounds arrays with accessors which hides the
lazy initialization from the user.

Change-Id: I0325a35de9c29f853559f891e32e7c777686e537
Remove some errant tabs.

Change-Id: Ie1f7051e99bcb15ad068711b68a9d8f317b12ed7
Fix some 80col violations and reflow the comments in cmake.in file.

Change-Id: I4c65c89b794845aeef69159a03350c727e2ee812
Remove BlockRandomAccessCRSMatrix.

It is not used anywhere.

Change-Id: I2a8ebbdacf788582f21266825ead3f76646da29e
Removed MSVC warnings
These are warnings which show up when using Ceres.

Change-Id: Id1f382f46b8a60743f0b12535b5b3cdf46f988e0
Fixed warning : 'va_copy' : macro redefinition
MSVC 2013 has got va_copy
Compare
http://msdn.microsoft.com/en-us/library/kb57fad8(v=vs.110).aspx
and
http://msdn.microsoft.com/en-us/library/kb57fad8.aspx.

Change-Id: If0937c76e8d250cde4b343844f3d35c980bf0921
Fixes swapped verboselevel and condition.

Change-Id: I296d86e6bbf415be4bfd19d6a0fe0963e3d36d74
Merge branch 'master' of https://ceres-solver.googlesource.com/ceres-solver

# By Sameer Agarwal (6) and others
# Via Sameer Agarwal
* 'master' of https://ceres-solver.googlesource.com/ceres-solver:
  Fixes swapped verboselevel and condition.
  Fixed warning : 'va_copy' : macro redefinition MSVC 2013 has got va_copy Compare http://msdn.microsoft.com/en-us/library/kb57fad8(v=vs.110).aspx and http://msdn.microsoft.com/en-us/library/kb57fad8.aspx.
  Removed MSVC warnings These are warnings which show up when using Ceres.
  Remove BlockRandomAccessCRSMatrix.
  Fix some 80col violations and reflow the comments in cmake.in file.
  Remove some errant tabs.
  Lazily initialize the bounds arrays in ParameterBlock.
  Add the (2,4,8) template specialization.
  Export Ceres compile definitions to targets compiled against Ceres.
  Fix a bug in Minimizer::RunCallbacks.