[CMake] Can't get Boost_${COMPONENT}_LIBRARY to work

Michael Jackson mike.jackson at bluequartz.net
Mon Mar 2 21:04:27 EST 2009


Probably should be ${Boost_DATE_TIME_LIBRARY}
_________________________________________________________
Mike Jackson                  mike.jackson at bluequartz.net
BlueQuartz Software                    www.bluequartz.net
Principal Software Engineer                  Dayton, Ohio



On Mar 2, 2009, at 7:20 PM, E. Wing wrote:

> I want to link something against the date_time library in boost. The  
> comments in the FindBoost.cmake module imply that I
> should be able to use something like ${Boost_date_time_LIBRARY}. But  
> the variable is always empty for me.
>
> Here is my code:
> SET(Boost_USE_STATIC_LIBS   ON)
> SET(Boost_USE_MULTITHREADED ON)
> FIND_PACKAGE(Boost 1.3.6 COMPONENTS date_time filesystem regex system)
> MESSAGE("boost libs ${Boost_LIBRARIES}")
> MESSAGE("boost date_time: ${Boost_date_time_LIBRARY}, found: $ 
> {Boost_date_time_FOUND}")
> MESSAGE("boost filesys: ${Boost_filesystem_LIBRARY}, found: $ 
> {Boost_filesystem_FOUND}")
>
> And my output:
> boost libs /usr/local/lib/libboost_date_time-mt.dylib;/usr/local/lib/ 
> libboost_filesystem-mt.dylib;/usr/local/lib/libboost_regex-mt.dylib;/ 
> usr/local/lib/libboost_system-mt.dylib
> boost date_time: , found:
> boost filesys: , found:
>
> Am I misunderstanding something?
>
> Thanks,
> Eric
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list