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).

Is there a way to inavlidating or change the values of cached entries on the base of a change of an option.
Ideally, this should work with cmake 2.6 and above.

   Thank's a lot for any help...

_______________________________________________
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