# HG changeset patch # User koda # Date 1348172222 -7200 # Node ID f40c65ae3eab26975de3c87f19b3334042e3bda3 # Parent 9545f2bf087c2f2a9b03e9e482a6be12cae030c1 issue ENGINECLEAN only when fpc < 2.6 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()