[CMake] CMAKE_USE_RELATIVE_PATHS
Bill Hoffman
bill.hoffman at kitware.com
Sat Nov 21 16:34:14 EST 2009
barcaroller wrote:
> "Bill Hoffman" wrote:
>
>> You should give up on CMAKE_USE_RELATIVE_PATHS , and we should deprecate
>> it from CMake. It just does not work, and frustrates people.
>
>
> Fair enough, but what are the alternatives? My two requirements are:
>
> - Using out-of-source builds
> - Have the gcc compiler use relative pathnames like
>
> gcc ../src/foo.c
>
> and not monstrosities like
>
> gcc /mount/server/homes/users/devel/proj/system/subsystem/src/foo.c
>
>
There is no way to do that from CMake. I consider it a feature since
you can move an executable anywhere on the machine and the debugger
still works. Is this causing something not to work?
-Bill
More information about the CMake
mailing list