[CMake] using relative paths

shreyas krishnan shreyas76 at gmail.com
Sat Oct 31 13:16:19 EDT 2009


Thanks for the info. I am wondering if the paths were fixed manually,
would the makefile be portable. I will make sure the same compiler in
my case VC++ 08 is available on the other system.

thanks
shrey

On Sat, Oct 31, 2009 at 9:44 AM, Alexander Neundorf
<a.neundorf-work at gmx.net> wrote:
> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list