complication issue

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

complication issue

Ali Angle


Can we make cmake use absolute paths in build commands and avoid change directory, and make build directory as working directory during build process ? 

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: complication issue

Ali Angle
example code added to : https://github.com/systemangle/mcve_avr
I think this may not be path related. But something is clearly wrong.

On Mon, 18 Mar 2019 at 10:52, Ali Angle <[hidden email]> wrote:


Can we make cmake use absolute paths in build commands and avoid change directory, and make build directory as working directory during build process ? 


--
A.A


Regards,
sYsTeamAngle

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: complication issue

Raymond Wan-2
In reply to this post by Ali Angle

Hi Ali,


On 18/3/2019 1:52 PM, Ali Angle wrote:
> Issue is described over here:
> https://stackoverflow.com/questions/55211221/cmake-build-problem-when-building-code-for-avr


I'm not too sure what you're talking about in this posting,
but I am also not too familiar with AVR.

At the beginning of your Stackoverflow post, you said, "When
I build using make everything works fine. but when I use
cmake it doesn't compile ok" and this statement isn't quite
clear.  If you hand-coded a Makefile, then you would compile
with that.  But CMake is used to create a Makefile.  When
you say it doesn't compile...are you saying you are having a
problem at the CMake step or the Make step?

Are you comparing a Makefile that you made vs a
CMakeLists.txt that you made?  Or is one made by someone else?

Ray


--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: complication issue

Raymond Wan-2
Hi Ali,

Please keep replies (to me, at least) to the CMake mailing list, as
well.  I'm not too knowledgeable with CMake and it's always useful for
all parties to have a discussion public so that others can jump in and
contribute something.

Quite frankly, your sentence below doesn't make sense to me.  I mean,
Makefiles and CMakeLists.txt are just text files.  If two Makefiles
are "running the exact commands", then they will behave exactly the
same.  The question is are the Makefiles *identical* and if not, then
you need to work backwards to where in the CMakeLists.txt has that
change been introduced.

Ray


On Tue, Mar 19, 2019 at 1:43 AM Ali Angle <[hidden email]> wrote:

>
> Hi Raymond,
> Please see the example code attached. In simple terms Makefile generated by cmake is running exactly the same commands as the Makefile file created by me. But the output differs and doesn't work when build using cmake generated Makefile.
>
> On Mon, 18 Mar 2019 at 20:42, Raymond Wan <[hidden email]> wrote:
>>
>>
>> Hi Ali,
>>
>>
>> On 18/3/2019 1:52 PM, Ali Angle wrote:
>> > Issue is described over here:
>> > https://stackoverflow.com/questions/55211221/cmake-build-problem-when-building-code-for-avr
>>
>>
>> I'm not too sure what you're talking about in this posting,
>> but I am also not too familiar with AVR.
>>
>> At the beginning of your Stackoverflow post, you said, "When
>> I build using make everything works fine. but when I use
>> cmake it doesn't compile ok" and this statement isn't quite
>> clear.  If you hand-coded a Makefile, then you would compile
>> with that.  But CMake is used to create a Makefile.  When
>> you say it doesn't compile...are you saying you are having a
>> problem at the CMake step or the Make step?
>>
>> Are you comparing a Makefile that you made vs a
>> CMakeLists.txt that you made?  Or is one made by someone else?
>>
>> Ray
>>
>>
>> --
>>
>> Powered by www.kitware.com
>>
>> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Kitware offers various services to support the CMake community. For more information on each offering, please visit:
>>
>> CMake Support: http://cmake.org/cmake/help/support.html
>> CMake Consulting: http://cmake.org/cmake/help/consulting.html
>> CMake Training Courses: http://cmake.org/cmake/help/training.html
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>
>> Follow this link to subscribe/unsubscribe:
>> https://cmake.org/mailman/listinfo/cmake
>
>
>
> --
> A.A
>
>
> Regards,
> sYsTeamAngle
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake