Philipp Moeller wrote:

> Nils Gladitz <[email protected]>
> writes:
>> I would like that very much as well.
> 
> I'll look into doing that. I think populating
> INTERFACE_COMPILE_DEFINTIONS with BOOST_${LIBRARY_NAME}_NO_LIB seems the
> obvious choice. 

Yes.

> In addition I can provide a Boost::disable_autolinking
> target to disable it for the complete library.

Also consider a CMake variable to disable the addition of the defines (by 
not linking the interface targets).

 set(Boost_ENABLE_AUTOLINKING 1)
 find_package(Boost)


Thanks,

Steve.


-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to