[CMake] Updating cache entries on variable modification
Tyler Roscoe
tyler at cryptio.net
Wed Oct 14 12:18:32 EDT 2009
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
More information about the CMake
mailing list