[CMake] How to find versioned Boost libraries?

Peter Simons simons at cryp.to
Thu Feb 19 06:52:14 EST 2009


Hi,

I'm having trouble using CMake's FindBoost() with versioned libraries.
Boost.System, for example, exists in the following variants:

  libboost_system-gcc43-mt-1_38.a
  libboost_system-gcc43-mt.a
  libboost_system-gcc43-1_38.a
  libboost_system-gcc43.a
  ...

Apparently, CMake 2.6.2 won't recognize that library because of the "gcc43"
identifier mangled into the filename.

Is there any way to remedy that situation? Can I maybe set a variable
somewhere that tells CMake about this identifier?

Take care,
Peter



More information about the CMake mailing list