Re: [CMake] call already made makefile

2010-11-07 Thread Michael Hertling
On 11/06/2010 07:10 PM, Alan W. Irwin wrote: On 2010-11-05 22:50-0700 SK wrote: On Fri, Nov 5, 2010 at 1:04 PM, Alan W. Irwin ir...@beluga.phys.uvic.ca wrote: I agree the above idea should work, but dropping add_custom_command completely and moving the COMMAND to add_custom_target instead

Re: [CMake] call already made makefile

2010-11-06 Thread Michael Hertling
On 11/06/2010 06:50 AM, SK wrote: On Fri, Nov 5, 2010 at 1:04 PM, Alan W. Irwin ir...@beluga.phys.uvic.ca wrote: I agree the above idea should work, but dropping add_custom_command completely and moving the COMMAND to add_custom_target instead (and dropping all file DEPENDS for the custom

Re: [CMake] call already made makefile

2010-11-06 Thread SK
On Sat, Nov 6, 2010 at 2:30 AM, Michael Hertling mhertl...@online.de wrote: If you want to ensure that an output-producing custom command without dependencies runs each time its output - present or not - is referred to you might use a second, say, dummy output which never exists, e.g.:

Re: [CMake] call already made makefile

2010-11-06 Thread Alan W. Irwin
On 2010-11-05 22:50-0700 SK wrote: On Fri, Nov 5, 2010 at 1:04 PM, Alan W. Irwin ir...@beluga.phys.uvic.ca wrote: I agree the above idea should work, but dropping add_custom_command completely and moving the COMMAND to add_custom_target instead (and dropping all file DEPENDS for the custom

Re: [CMake] call already made makefile

2010-11-05 Thread Michael Hertling
On 11/05/2010 02:09 AM, Alan W. Irwin wrote: On 2010-11-04 16:29-0700 SK wrote: On Sat, Oct 30, 2010 at 8:31 AM, Alan W. Irwin ir...@beluga.phys.uvic.ca wrote: On 2010-10-29 20:50-0700 mina adel wrote: Hi All I have an open source code that I use in my project. This open source code

Re: [CMake] call already made makefile

2010-11-05 Thread Michael Hertling
On 11/05/2010 05:23 AM, SK wrote: On Thu, Nov 4, 2010 at 6:09 PM, Alan W. Irwin ir...@beluga.phys.uvic.ca wrote: then the custom make command should always be run (since it has no DEPENDS option), Alan, you are absolutely right!! I missed this since the external makefile I need actually

Re: [CMake] call already made makefile

2010-11-05 Thread David Cole
On Fri, Nov 5, 2010 at 5:17 AM, Michael Hertling mhertl...@online.dewrote: On 11/05/2010 05:23 AM, SK wrote: On Thu, Nov 4, 2010 at 6:09 PM, Alan W. Irwin ir...@beluga.phys.uvic.ca wrote: then the custom make command should always be run (since it has no DEPENDS option), Alan, you are

Re: [CMake] call already made makefile

2010-11-05 Thread SK
On Thu, Nov 4, 2010 at 9:23 PM, SK s...@metrokings.com wrote: On Thu, Nov 4, 2010 at 6:09 PM, Alan W. Irwin ir...@beluga.phys.uvic.ca wrote: then the custom make command should always be run (since it has no DEPENDS option), Alan, you are absolutely right!! No, sorry. Only if the

Re: [CMake] call already made makefile

2010-11-05 Thread David Cole
On Fri, Nov 5, 2010 at 2:00 PM, SK s...@metrokings.com wrote: On Thu, Nov 4, 2010 at 9:23 PM, SK s...@metrokings.com wrote: On Thu, Nov 4, 2010 at 6:09 PM, Alan W. Irwin ir...@beluga.phys.uvic.ca wrote: then the custom make command should always be run (since it has no DEPENDS option),

Re: [CMake] call already made makefile

2010-11-05 Thread Alan W. Irwin
On 2010-11-05 11:00-0700 SK wrote: On Thu, Nov 4, 2010 at 9:23 PM, SK s...@metrokings.com wrote: On Thu, Nov 4, 2010 at 6:09 PM, Alan W. Irwin ir...@beluga.phys.uvic.ca wrote: then the custom make command should always be run (since it has no DEPENDS option), Alan, you are absolutely

Re: [CMake] call already made makefile

2010-11-05 Thread Alan W. Irwin
On 2010-11-05 14:12-0400 David Cole wrote: On Fri, Nov 5, 2010 at 2:00 PM, SK s...@metrokings.com wrote: On Thu, Nov 4, 2010 at 9:23 PM, SK s...@metrokings.com wrote: On Thu, Nov 4, 2010 at 6:09 PM, Alan W. Irwin ir...@beluga.phys.uvic.ca wrote: then the custom make command should always be

Re: [CMake] call already made makefile

2010-11-05 Thread SK
On Fri, Nov 5, 2010 at 1:04 PM, Alan W. Irwin ir...@beluga.phys.uvic.ca wrote: I agree the above idea should work, but dropping add_custom_command completely and moving the COMMAND to add_custom_target instead (and dropping all file DEPENDS for the custom target) is even a simpler way to

Re: [CMake] call already made makefile

2010-11-04 Thread mina adel
...@beluga.phys.uvic.ca To: mina adel elecengineer_m...@yahoo.com Cc: cmake@cmake.org Sent: Sat, October 30, 2010 11:31:42 AM Subject: Re: [CMake] call already made makefile On 2010-10-29 20:50-0700 mina adel wrote: Hi All I have an open source code that I use in my project. This open source

Re: [CMake] call already made makefile

2010-11-04 Thread Alan W. Irwin
On 2010-11-04 11:58-0700 mina adel wrote: Thank you so much for your help I have another problem, I have successfully created all the 3rd-party libraries. I used ADD_CUSTOM_COMMAND to call the makefiles that are provided using these libraries. Now, I want to combine all these libraries to

Re: [CMake] call already made makefile

2010-11-04 Thread SK
On Sat, Oct 30, 2010 at 8:31 AM, Alan W. Irwin ir...@beluga.phys.uvic.ca wrote: On 2010-10-29 20:50-0700 mina adel wrote: Hi All I have an open source code that I use in my project. This open source code already has Makefile coded for it. I want to use cmake so that before it compile my

Re: [CMake] call already made makefile

2010-11-04 Thread SK
On Thu, Nov 4, 2010 at 4:29 PM, SK s...@metrokings.com wrote: On Sat, Oct 30, 2010 at 8:31 AM, Alan W. Irwin ir...@beluga.phys.uvic.ca wrote: On 2010-10-29 20:50-0700 mina adel wrote: Hi All I have an open source code that I use in my project. This open source code already has Makefile

Re: [CMake] call already made makefile

2010-11-04 Thread mina adel
elecengineer_m...@yahoo.com; cmake@cmake.org Sent: Thu, November 4, 2010 7:59:49 PM Subject: Re: [CMake] call already made makefile On Thu, Nov 4, 2010 at 4:29 PM, SK s...@metrokings.com wrote: On Sat, Oct 30, 2010 at 8:31 AM, Alan W. Irwin ir...@beluga.phys.uvic.ca wrote: On 2010-10-29 20:50-0700

Re: [CMake] call already made makefile

2010-11-04 Thread SK
On Thu, Nov 4, 2010 at 5:41 PM, mina adel elecengineer_m...@yahoo.com wrote: Thank you for your help. I used ADD_Custom_Command() to run the makefiles of 3rd-partylibraries. My problem is how to combine these generated (static)  libraries into one static library using cmake to be used later

Re: [CMake] call already made makefile

2010-11-04 Thread Alan W. Irwin
On 2010-11-04 16:29-0700 SK wrote: On Sat, Oct 30, 2010 at 8:31 AM, Alan W. Irwin ir...@beluga.phys.uvic.ca wrote: On 2010-10-29 20:50-0700 mina adel wrote: Hi All I have an open source code that I use in my project. This open source code already has Makefile coded for it. I want to use

Re: [CMake] call already made makefile

2010-11-04 Thread SK
On Thu, Nov 4, 2010 at 6:09 PM, Alan W. Irwin ir...@beluga.phys.uvic.ca wrote: then the custom make command should always be run (since it has no DEPENDS option), Alan, you are absolutely right!! I missed this since the external makefile I need actually does have a dependency to create the

Re: [CMake] call already made makefile

2010-10-30 Thread Alan W. Irwin
On 2010-10-29 20:50-0700 mina adel wrote: Hi All I have an open source code that I use in my project. This open source code already has Makefile coded for it. I want to use cmake so that before it compile my project it first call the cmake of these open source code, which will compile it to

[CMake] call already made makefile

2010-10-29 Thread mina adel
Hi All I have an open source code that I use in my project. This open source code already has Makefile coded for it. I want to use cmake so that before it compile my project it first call the cmake of these open source code, which will compile it to .la library. Then using this library, it