Quoting Brad King <[EMAIL PROTECTED]>:
If BUILD_X is on and SOME_OPTION is set by the user, then BUILD_X is turned off, and then back on the user may expect SOME_OPTION to have retained its value. You can convert it to an INTERNAL cache entry so that it does not show up in the GUI when it is not needed and then use FORCE to change its type back later. Here is an example macro to do that for on/off sub-options: http://www.vtk.org/cgi-bin/viewcvs.cgi/CMake/vtkDependentOption.cmake?rev=1.5&view=markup
Thank you very much for this link ! It is this kind of 'high level' macro's that I'm missing most in 'standard' cmake.
Peter -- www.fmtc.be ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
