GCC 4.3 does not ship stdatomic.h. Maybe a check can be added to cmake to inform the user that a compiler with C++1x atomics is needed.
Build log:
---
Building CXX object CMakeFiles/spark.dir/swftypes.cpp.o
In file included from /var/tmp/portage/www-plugins/lightspark-0.4.2/work/lightspark-0.4.2/swftypes.cpp:22:
/var/tmp/portage/www-plugins/lightspark-0.4.2/work/lightspark-0.4.2/swftypes.h:37:23: error: stdatomic.h: No such file or directory
In file included from /var/tmp/portage/www-plugins/lightspark-0.4.2/work/lightspark-0.4.2/tags.h:26,
from /var/tmp/portage/www-plugins/lightspark-0.4.2/work/lightspark-0.4.2/abc.h:29,
from /var/tmp/portage/www-plugins/lightspark-0.4.2/work/lightspark-0.4.2/swf.cpp:26:
/var/tmp/portage/www-plugins/lightspark-0.4.2/work/lightspark-0.4.2/swftypes.h:37:23: error: stdatomic.h: No such file or directory
In file included from /var/tmp/portage/www-plugins/lightspark-0.4.2/work/lightspark-0.4.2/swftypes.cpp:22:
/var/tmp/portage/www-plugins/lightspark-0.4.2/work/lightspark-0.4.2/swftypes.h:480: error: ISO C++ forbids declaration of 'atomic' with no type
/var/tmp/portage/www-plugins/lightspark-0.4.2/work/lightspark-0.4.2/swftypes.h:480: error: invalid use of '::'
/var/tmp/portage/www-plugins/lightspark-0.4.2/work/lightspark-0.4.2/swftypes.h:480: error: expected ';' before '<' token
/var/tmp/portage/www-plugins/lightspark-0.4.2/work/lightspark-0.4.2/swftypes.h: In member function 'void lightspark::ASObject::incRef()':
/var/tmp/portage/www-plugins/lightspark-0.4.2/work/lightspark-0.4.2/swftypes.h:506: error: 'ref_count' was not declared in this scope
/var/tmp/portage/www-plugins/lightspark-0.4.2/work/lightspark-0.4.2/swftypes.h: In member function 'void lightspark::ASObject::decRef()':
/var/tmp/portage/www-plugins/lightspark-0.4.2/work/lightspark-0.4.2/swftypes.h:512: error: 'ref_count' was not declared in this scope
/var/tmp/portage/www-plugins/lightspark-0.4.2/work/lightspark-0.4.2/swftypes.h:513: error: 'ref_count' was not declared in this scope
/var/tmp/portage/www-plugins/lightspark-0.4.2/work/lightspark-0.4.2/swftypes.h: In member function 'void lightspark::ASObject::fake_decRef()':
/var/tmp/portage/www-plugins/lightspark-0.4.2/work/lightspark-0.4.2/swftypes.h:531: error: 'ref_count' was not declared in this scope
---
I've found no clean way to ask for GCC >= 4.4 in cmake, do you have any suggestions?