William A. Hoffman wrote:
All libraries IF(MSVC), or other non-GCC Windows compilers, or other platforms that don't have Unix -l behavior. I don't want to type SET_TARGET_PROPERTIES(mylib PROPERTIES PREFIX "lib") for every single library. Call me lazy.At 02:23 PM 2/16/2006, Brandon J. Van Every wrote: I think CMake will gain more acceptance if it is less verbose, so long as shorter forms do not compromise the engineering robustness. Sometimes they do; then it is better to make people spell things out the long way. But I'm very conscious of the fact that the 1st time anyone looks at a CMakeLists.txt for any appreciable project, it looks like a pile of gobbledygook. Straightforward gobbledygook if you're coming from a GNU Autoconf background, as I am, but a lot of people don't have any particular build background and their eyes just glaze over when confronted with it. Anything that can put the syntax on a diet is desireable IMO, so long as it remains readable, clear, and doesn't compromise the engineering robustness. A thought: is it possible to do type inference on SET_*_PROPERTIES, i.e. automagically determine whether something is a target, a file, or a test? Then we wouldn't need 3 different SET_*_PROPERTIES functions. We could just have 1, SET_PROPERTIES. Also, SET_DIRECTORY_PROPERTIES(PROPERTIES blah blah blah) is redundant. It could be just SET_DIRECTORY_PROPERTIES(blah blah blah). On the other hand, you could just do SET_PROPERTIES and type infer the directories. Then if people want the current directory, they would write SET_PROPERTIES(. PROPERTIES blah blah blah). Cheers, Brandon Van Every so that we don't need |
_______________________________________________ Chicken-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/chicken-users
