[CMake] using relative paths

shreyas krishnan shreyas76 at gmail.com
Fri Oct 30 19:27:47 EDT 2009


I think my trouble is

my cmakelists are made up of
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/include )

instead of relative paths.

So do I need to fix all these to become relative ? I want to package
my source without having to rerun cmake at a different directory.

thanks
shrey

On Fri, Oct 30, 2009 at 3:24 PM, shreyas krishnan <shreyas76 at gmail.com> wrote:
> Hi
>   I am using cmake with a VC++ 8 project. I find that the include
> directories in the project properties are all absolute paths. How can
> I avoid this ?
>
> I tried the following in CMAKECache txt file before doing a generate
> in Cmake-gui
> //If true, cmake will use relative paths in makefiles and projects.
> CMAKE_USE_RELATIVE_PATHS:BOOL=ON
>
> This still generates absolute directories. Can someone please help.
>
> thanks
> shrey
>


More information about the CMake mailing list