MantisBT - CMake
View Issue Details
0008576CMakeModulespublic2009-02-21 08:562009-02-24 00:53
Mikko Vainio 
Philip Lowman 
normalminoralways
closedfixed 
CMake-2-6 
 
0008576: Setting Boost_LIB_PREFIX to "lib" on windows.
Boost uses the library naming prefix "lib" for statically linked libraries on Windows. FindBoost.cake sets the prefix correctly only if MSVC is defined. Tested boost 1.38.0 with MinGW, Intel and MSVC90.

Patch (change line 506):

  # Setting some more suffixes for the library
  SET (Boost_LIB_PREFIX "")
  -if ( MSVC AND Boost_USE_STATIC_LIBS )
  +if ( WIN32 AND Boost_USE_STATIC_LIBS )
    SET (Boost_LIB_PREFIX "lib")
  endif()
No tags attached.
Issue History
2009-02-21 08:56Mikko VainioNew Issue
2009-02-24 00:53Philip LowmanNote Added: 0015320
2009-02-24 00:53Philip LowmanAssigned To => Philip Lowman
2009-02-24 00:53Philip LowmanStatusnew => closed
2009-02-24 00:53Philip LowmanResolutionopen => fixed

Notes
(0015320)
Philip Lowman   
2009-02-24 00:53   
Thanks for reporting this. I'm extremely sorry about the problem, it's a regression I carelessly introduced in revision 1.25 which unfortunately made it into the 2.6.3 release.

http://public.kitware.com/cgi-bin/viewcvs.cgi/Modules/FindBoost.cmake?root=CMake&r1=1.24&r2=1.25 [^]

The problem has been fixed in CVS. I'll be sure to put out a call for testing prior to the next stable release of FindBoost and be more careful making modifications in the future.

Committer: Philip Lowman <philip@yhbt.com>
/cvsroot/CMake/CMake/Modules/FindBoost.cmake,v <-- FindBoost.cmake
new revision: 1.34; previous revision: 1.33