MantisBT - CMake
View Issue Details
0009153CMakeModulespublic2009-06-15 07:502010-08-11 23:35
Adriaan de Groot 
Philip Lowman 
normalminoralways
closedfixed 
CMake-2-6 
 
0009153: FindBoost doesn't handle all compiler specifications
Sun Studio 12 produces a Boost with -sw as compiler string, leading to (e.g.) libboost_program_options-sw-mt-1_36.so ; the FindBoost module the comes with CMake 2.6p4 handles some non-gcc compilers, but not Studio 12.
I've got a patch here somewhere .. basically it does if (CMAKE_COMPILER_MATCHES "SunPro") and sets up the suffix variables correctly. I'll attach it later once I have found it.
No tags attached.
diff cmake-findboost.diff (574) 2009-09-18 04:21
https://public.kitware.com/Bug/file/2460/cmake-findboost.diff
Issue History
2009-06-15 07:50Adriaan de GrootNew Issue
2009-07-18 00:04Philip LowmanNote Added: 0016899
2009-07-18 00:04Philip LowmanAssigned To => Philip Lowman
2009-07-18 00:04Philip LowmanStatusnew => assigned
2009-09-17 23:07Philip LowmanNote Added: 0017600
2009-09-18 04:21Adriaan de GrootFile Added: cmake-findboost.diff
2009-09-18 04:28Adriaan de GrootNote Added: 0017603
2009-09-19 00:55Philip LowmanNote Added: 0017618
2009-09-19 16:57Adriaan de GrootNote Added: 0017650
2009-09-20 11:34Philip LowmanNote Added: 0017661
2009-09-20 11:34Philip LowmanStatusassigned => resolved
2009-09-20 11:34Philip LowmanResolutionopen => fixed
2010-08-11 23:35Philip LowmanStatusresolved => closed

Notes
(0016899)
Philip Lowman   
2009-07-18 00:04   
Thanks for opening the bug report. Please attach the patch and I will check it in.
(0017600)
Philip Lowman   
2009-09-17 23:07   
Hi, have you been able to find that patch yet?
(0017603)
Adriaan de Groot   
2009-09-18 04:28   
Patch now attached; this one is a little more crude and just assumes that on UNIX, if it's not gcc or icc, it must be sunpro. You might improve it by actually checking the compiler name or identifier.
(0017618)
Philip Lowman   
2009-09-19 00:55   
I didn't notice your comment in additional information. So ${CMAKE_CXX_COMPILER} is equal to "SunPro"?
(0017650)
Adriaan de Groot   
2009-09-19 16:57   
CMAKE_CXX_COMPILER_ID, actually. This bit of CMakeLists.txt



message(STATUS ${CMAKE_CXX_COMPILER})
message(STATUS ${CMAKE_CXX_COMPILER_ID})



outputs the following path (useless) and ID.


-- /opt/SunStudioExpress/bin/CC
-- SunPro
(0017661)
Philip Lowman   
2009-09-20 11:34   
Thanks. I've checked in a fix.

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