On Wed, Oct 14, 2009 at 04:59:17PM +0200, Theodore Papadopoulo wrote:
> We have a project which can be built either with static or dynamic 
> libraries. The toggle
> is defined via an option named BUILD_SHARED which has some default value 
> (let's say static).
> 
> Unfortunately, after the first "configure" in ccmake all the libraries 
> are set to their values corresponding
> to the default static choice  (typically .a files) and then changing the 
> BUILD_SHARED option to shared
> never recomputes the proper library names (still the .a files).

I think we'll need to see some code from your CMakeLists, but are you
familiar with set(... CACHE)?

tyler
_______________________________________________
Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to