Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2054: tests that DEPEND on a library in a project that is MODULAR don't compile
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-07-02 07:34:49
#2054: tests that DEPEND on a library in a project that is MODULAR don't compile
-----------------------------------+----------------------------------------
Reporter: troy | Owner: troy
Type: Bugs | Status: new
Milestone: Boost 1.36.0 | Component: CMake
Version: Boost Release Branch | Severity: Problem
Resolution: | Keywords:
-----------------------------------+----------------------------------------
Comment(by miguelf_at_[hidden]):
I was looking into this as I was playing around with modularizing
boost::any. I think the solution is to collect the include dirs of each
library. For example, assuming libs have been modularized, then set and
export these:
set(BOOST_ANY_INCLUDE_DIRS ${Boost_SOURCE_DIR}/libs/any/include)
then do,
include_directories(${BOOST_ANY_INCLUDE_DIRS})
foreach(dep DEPENDS)
include_directories(${BOOST_${dep}_INCLUDE_DIRS})
endforeach(dep)
The tests and examples directories, if any, will inherit these include
dirs.
--Miguel
-- Ticket URL: <http://svn.boost.org/trac/boost/ticket/2054#comment:1> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:58 UTC