[CMake] [CMake General][FindBoost] CMake and Boost 1.46.1

Robert Nelson boardmaster357 at gmail.com
Sun May 1 17:18:49 EDT 2011


I just tried adding
SET(Boost_ADDITIONAL_VERSIONS 1.46.1)
clearing the cache, and running configure again.  I still get the same
error message as before.  While I agree that your addition is
necessary to make it work, it seems that something else is also
needed.


PROJECT(schema)
cmake_minimum_required(VERSION 2.8.4)


SET( Boost_NO_SYSTEM_PATHS true )
SET( BOOST_INCLUDEDIR "C:/Boost/include/boost-1_46_1" )
SET( BOOST_LIBRARYDIR "C:/Boost/lib" )
SET(Boost_ADDITIONAL_VERSIONS "1.46.1" )
find_package(Boost 1.46 COMPONENTS regex program_options pthread
filesystem REQUIRED)

link_directories(${Boost_LIBRARY_DIRS} )
include_directories( ${Boost_INCLUDE_DIRS} )

#if you don't want the full compiler output, remove the following line
SET(CMAKE_VERBOSE_MAKEFILE ON)

add_executable(schema
main.cpp
)


More information about the CMake mailing list