[CMake] Project and specific variables

Bill Hoffman bill.hoffman at kitware.com
Wed Aug 1 08:45:30 EDT 2007


Alexander.Camek at elektrobit.com wrote:
> Hi List,
>
> I had a discussion last time and the topic of the discussion was following: 
>
> When you use PROJECT, you normally get the two variablse <PROJECT_NAME>_SOURCE_DIR and <PROJECT_NAME>_BINARY_DIR.
> As I got informed these both varibales are only used for backward compatibility and shall not be used anymore.
> Instead of that someone may use CMAKE_CURRENT_SOURCE_DIR.
>
> Can somebody tell me if that's right or can the project variables used?
>   
Those variables are not going away as far as I know.   I am not sure who 
informed you of that, but they were wrong.

-Bill



More information about the CMake mailing list