Re: [CMake] Multiple calls to find_package(Boost) with different components

2009-12-21 Thread Adolfo Rodríguez Tsouroukdissian
On Mon, Dec 21, 2009 at 12:09 PM, Marcel Loose wrote: > Hi Adolfo, > > I think you already answered your question yourself, though maybe you > didn't realize it. Fortunately you wrote the key phrase > > ... Now if I clear all non-internal Boost_* cache variables ... > > The thing is, FindBoost ke

Re: [CMake] Multiple calls to find_package(Boost) with different components

2009-12-21 Thread Marcel Loose
Hi Adolfo, I think you already answered your question yourself, though maybe you didn't realize it. Fortunately you wrote the key phrase ... Now if I clear all non-internal Boost_* cache variables ... The thing is, FindBoost keeps track of the components it has already found in internal variable

[CMake] Multiple calls to find_package(Boost) with different components

2009-12-21 Thread Adolfo Rodríguez Tsouroukdissian
Hi all, I have a use case where find_package(Boost COMPONENTS xxx) is called more than once, and each time with a different set of components, as in the following example: cmake_minimum_required(VERSION 2.6) project(MyBoost) find_package(Boost REQUIRED COMPONENTS date_time) message(STATUS "1st