remove CMAKE_ prefix from variables

David Faure faure at kde.org
Mon Mar 27 14:58:39 CEST 2006


On Monday 27 March 2006 14:19, André Wöbbeking wrote:
> Hi,
> 
> I'm speaking about the following variables:
> 
> CMAKE_CURRENT_BINARY_DIR
> CMAKE_CURRENT_SOURCE_DIR
> CMAKE_SOURCE_DIR
> 
> First the prefix is a bit confusing as one could mean these are CMake 
> directories and second it's less to type :-)

I agree too. Within a CMakeLists.txt file, "CURRENT_SOURCE_DIR" would be enough.
I guess the CMAKE_ prefix was added in order to make it clear that this variable
is provided by cmake itself, but that makes it less clear what it's pointing to,
especially for CMAKE_SOURCE_DIR.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).



More information about the Kde-buildsystem mailing list