From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <53966794.6080102@kernel.dk> Date: Mon, 09 Jun 2014 20:04:04 -0600 From: Jens Axboe MIME-Version: 1.0 Subject: Re: build from cmake References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit To: George Dowding , fio@vger.kernel.org List-ID: On 2014-06-09 14:51, George Dowding wrote: > I spent a few hours on this. Might save someone else some time. > > I'm working in a larger project that uses cmake for its builds. cmake > supports adding external projects using the ExternalProject_Add > function. > > But, there is some issue in the fio Makefile that causes a problem > when run from cmake. I could never reproduce it from the command line. > > I was able to get the build to happen by changing the implicit rule > .c.o to use pattern notation. Not sure if this will work in all cases > or has other side effects. > > Without this change, I was getting this error. > > make[4]: *** No rule to make target `gettime.o', needed by `fio'. Stop. It seems to work for me (your change), and it should be correct. Unfortunately I'm not much of a Makefile expert... So would be nice if others could chime in. -- Jens Axboe