CMake trouble with Boost 1.58 on Debian Wheezy -


debian wheezy comes boost 1.49, need use newer version (>=1.50). standard way ? i've installed boost 1.58 /usr/local, set boost_root /usr/local, cmake can't find it, old 1.49 in /usr. can ?

i have similar situation on ubuntu 14.04 - default boost 1.54 installed , own built boost 1.56.

i have cmakelists.txt configured following way:

list (append cmake_library_path "/usr/local/lib") # make sure there boost library files list (append cmake_include_path "/usr/local/include") # make sure there boost directory  find_package (boost 1.56 components "system" "filesystem" required)  include_directories(${boost_include_dirs}) link_directories(${boost_library_dirs})  target_link_libraries(${your_app} ${boost_library_dirs}) 

Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -