[CMake] using relative paths

Alexander Neundorf a.neundorf-work at gmx.net
Sat Oct 31 12:44:20 EDT 2009


On Saturday 31 October 2009, shreyas krishnan wrote:
> 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.

To compile a cmake-based package cmake must be installed on that host. The 
generated makefiles are not (and can not) be portable among systems.

Alex


More information about the CMake mailing list