diff -r 9545f2bf087c -r f40c65ae3eab hedgewars/CMakeLists.txt --- a/hedgewars/CMakeLists.txt Thu Sep 20 22:10:32 2012 +0200 +++ b/hedgewars/CMakeLists.txt Thu Sep 20 22:17:02 2012 +0200 @@ -261,7 +261,8 @@ add_dependencies(${engine_output_name} lua) endif() -if(NOT APPLE) +#fpc < 2.6 has a few bugs in updating inline functions, so we have to compile all engine every time as workaround +if(fpc_version LESS "020600") if(NO_VIDEOREC OR NOT ${FFMPEG_FOUND}) add_dependencies(${engine_output_name} ENGINECLEAN) endif()