[CMake] submission: updated Modules/FindBoost.cmake
Cristian Adam
cristian.adam at gmx.net
Fri May 18 05:19:29 EDT 2007
Mike Talbot wrote:
> I have made some enhancements to FindBoost.cmake to try to add support
> for the boost libraries (attached).
Thanks, the enhancements are welcome, the script now looks like this:
project(signal CXX)
if (MINGW)
set(Boost_LIB_SUFFIX mgw34-s-1_34)
set(Boost_LIB_PREFIX lib)
endif(MINGW)
find_package(Boost)
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})
add_executable(signal signal.cpp)
if (MINGW)
target_link_libraries(signal ${Boost_signals_LIBRARIES})
endif(MINGW)
And it works with VS8.0 and MinGW 3.4.2.
Please update your findboost.cmake with the changes the original poster
made, by
adding boost-1.34 (and others) to SUFFIX_FOR_PATH.
Best regards,
Cristi.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070518/8a4d7667/attachment.html
More information about the CMake
mailing list