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
)
_______________________________________________
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

Reply via email to