check_ipo_supported fails with gcc-6 on travis
It seems the new check_op_supported function doesn't work with GCC6.0. When the function tries to link, it fails to find the foo function :
usr/bin/g++-6 -flto -fno-fat-lto-objects CMakeFiles/boo.dir/main.cpp.o -o
boo libfoo.a
/tmp/cckb0rt9.ltrans0.ltrans.o: In function `main':
<artificial>:(.text+0x5): undefined reference to `foo()'
You can see the full output of the function here :
https://travis-ci.org/Lectem/boilerplate/jobs/257936132#L599
This is with the released CMake 3.9.0 version. Is it a GCC/setup problem or a CMake one ?