[CMake] Problems using Boost and VS 8 Express

Mike Jackson imikejackson at gmail.com
Thu Aug 30 15:50:36 EDT 2007


I have no idea what cmake 2.4.7 included. Here is the FindBoost.cmake  
that I use:

http://titanium.imts.us/viewvc/Task_7/MXADataModel/Resources/ 
FindBoost-alt.cmake

That is directly from out CVS repository. The code was taken from  
another persons FindBoost.cmake and I made some modifications. Try it  
out and see if it works any better for you. <http://titanium.imts.us/ 
viewvc/Task_7/PFImport/CMakeLists.txt>
has an example of how I use it.

-- 
Mike Jackson   Senior Research Engineer
Innovative Management & Technology Services


On Aug 30, 2007, at 3:41 PM, Gheorghe Postelnicu wrote:

> Hi Mike,
>
> Thanks for the suggestion. I forgot to mention in my previous mail
> that I am using CMake 2.4.7 (installed using the installer), but
> although I found mentions of these library names on this mailing list,
> there is no such variable in the version of FindBoost.cmake I have. Is
> this normal?
>
> Thanks,
>
> On 8/30/07, Mike Jackson <imikejackson at gmail.com> wrote:
>> Depending on which "FindBoost" you are using, you should be using
>> something like:
>>
>> SET(Libraries
>> ITKIO
>> ITKCommon
>> ${Boost_Program_Options_Library}
>> )
>>
>> Look at the actual file "FindBoost.cmake". Near the top in all the
>> comments should be the actual variable name that will get filled in
>> using for the Program Options Library.
>>
>> Hope that helps.
>>
>> Look at <http://titanium.imts.us/viewvc/Task_7/PFImport/
>> CMakeLists.txt>. It is commented enough to find what you need.
>>
>> --
>> Mike Jackson   Senior Research Engineer
>> Innovative Management & Technology Services
>>
>>
>> On Aug 30, 2007, at 11:33 AM, Gheorghe Postelnicu wrote:
>>
>>> SET(Libraries
>>>       ITKIO
>>>       ITKCommon
>>>       boost_program_options
>>> )
>>
>>
>
>
> -- 
> Gheorghe Postelnicu, PhD
> MGH, Harvard Medical School



More information about the CMake mailing list