Wojciech Migda wrote:
Hi again,

this workaround seems to do a trick:

in cmDependsC::WriteDependencies I've added a local variable to store
path to the source file being scanned for dependencies:

std::string root_dir =
cmSystemTools::GetFilenamePath(this->LocalGenerator->Convert(src,
      cmLocalGenerator::HOME_OUTPUT,
      cmLocalGenerator::MAKEFILE));

later in the function I've replaced

        if((*i) == ".")
          {
                tempPathStr += current.FileName;

with

        if((*i) == ".")
          {
                tempPathStr += root_dir + "/" + current.FileName;

Could anyone from the cmake dev team evaluate this proposal ?


There are other things that will break because of this. Things like percent done. The build directories were designed with the thought that they should be unique.

Try LIBRARY_OUTPUT_PATH to place the libraries, that is how it should be done.

-Bill
_______________________________________________
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

Reply via email to