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 <systeman...@gmail.com> 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 <rwan.w...@gmail.com> 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