[CMake] FindBoost.cmake updated on the bugtracker
Mathias Dalheimer
dalheimer at itwm.fhg.de
Mon Apr 7 11:37:26 EDT 2008
Hi,
as a new cmake user I am pretty impressed how painless software builds
can be - so first of all, thanks for releasing this software.
Andreas Pakulat wrote:
> See FindBoost_v7.cmake on
> http://public.kitware.com/Bug/view.php?id=6257 for the latest
> version, which should be completely compatible to the 2.4 version.
I would like to suggest another tweak for the FindBoost.cmake file: I
needed to add some Boost libraries statically. I used your
FindBoostv7.cmake from the tracker and patched it slightly:
430,431c430,431
< MESSAGE(STATUS "Boost_INCLUDE_DIRS: ${Boost_INCLUDE_DIRS}")
< MESSAGE(STATUS "Boost_LIBRARIES: ${Boost_LIBRARIES}")
---
> # MESSAGE(STATUS "Boost_INCLUDE_DIRS: ${Boost_INCLUDE_DIRS}") #
> MESSAGE(STATUS "Boost_LIBRARIES: ${Boost_LIBRARIES}")
499,502c499
< SET(Boost_LIBRARIES ${Boost_LIBRARIES}
${Boost_${UPPERCOMPONENT}_LIBRARY})
< # Patched MD:
< string(REGEX REPLACE "so$" "a" staticlib
${Boost_${UPPERCOMPONENT}_LIBRARY})
< SET(Boost_STATIC_LIBRARIES ${Boost_STATIC_LIBRARIES}
${staticlib})
---
> SET(Boost_LIBRARIES ${Boost_LIBRARIES}
${Boost_${UPPERCOMPONENT}_LIBRARY})
524a522
>
Basically, I just replace the .so ending with .a and build a new
variable Boost_STATIC_LIBRARIES variable. I also attached my version of
the FindBoost.cmake file.
Thanks,
-Mathias
--
______________________________________________________________________
Dipl.-Wirtsch. Ing. (Inform.) Mathias Dalheimer
Fraunhofer Institut fuer Techno- und Wirtschaftsmathematik (ITWM)
Fraunhofer-Platz 1
67663 Kaiserslautern, Germany
Phone +49(0)631/31600-4484 | mailto:dalheimer at itwm.fraunhofer.de
Fax +49(0)631/31600-1099 |
______________________________________________________________________
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: FindBoost.cmake
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080407/ce9f4f26/attachment-0001.txt>
More information about the CMake
mailing list