Skip to content

Small cmake wrapper around the monolithic version around conans' boost package.

License

Notifications You must be signed in to change notification settings

elnoir/conan-cmake_findboost_monolithic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

conan-cmake_findboost_monolithic

This package contains a FindBoost.cmake to wrap the conans boost package ( boost/1.69.0@conan/stable ) distributed in conan-center. The original FindBoost distributed with CMake does not work with the conan pacakage when you try to crosscompile with it to Android.

Workaround

The cmake script works the following way:

  • sets the include / library dirs based on the variables provided by conan
  • adds imported target for header only and diagnostic target
  • parse the CONAN_LIBS_BOOST variable for boost components and creating Boost::< component> target

Notes

When using this script, use the conan_basic_setup(TARGETS), because the generated Boost::< component >-s will depend on the CONAN_Pkg::boost target.

About

Small cmake wrapper around the monolithic version around conans' boost package.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published