Re: [hatari-devel] Cmake 3.0.0 warning

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Le 13/07/2014 15:53, Thomas Huth a écrit :
Thanks for the hint, Andreas, I've fixed it in Hatari now like this:

http://hg.tuxfamily.org/mercurialroot/hatari/hatari/rev/7b110dcc02bf

I think Previous could be fixed in the same way.


Hello

with this change, it doesn't work anymore with older cmake 2.8.1 :

[  8%] Generating cpuemu.c, cpustbl.c
/bin/sh: $<TARGET_FILE:gencpu>: command not found



make[2]: *** [src/uae-cpu/cpuemu.c] Error 127
make[1]: *** [src/uae-cpu/CMakeFiles/UaeCpu.dir/all] Error 2


cmake 2.8.1 is from march 2010, I don't know if it still widely used, but maybe some more recent cmake 2.8.x versions are not working with this change anymore too.

(it seems TARGET_FILE was added to cmake 2.8.8 in april 2012)


Maybe have 2 different rules based on cmake's version ?


Nicolas



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/