[CMake] Suggestion for CMake script
Jorgen Bodde (email lists)
solidstl at xs4all.nl
Tue Mar 28 09:25:10 EST 2006
Hi all,
To make the Cmake script more consistent, I would suggest a minor change
(that can coexist next to the original one). If you define a project
like this
PROJECT(SOMENAME)
then the SOMENAME_SOURCE_DIR and SOMENAME_BINARY_DIR come into play. I
find it hard to distinguish those 'auto generated' variables from own
variables or even find variables. What if the format would be this?
SOMENAME.SOURCE_DIR and SOMENAME.BINARY_DIR ??
Now it is more clear (from an understanding point of view) that
SOURCE_DIR and BINARY_DIR are actually properties of the project SOMEDIR
(everybody who develops code understands this I guess)
When parsing a variable, the . and _ can coexist, it could be a matter
of preference or a smooth transition.
My two cents,
- Jorgen
More information about the CMake
mailing list