]> git.jsancho.org Git - lugaru.git/commit
CMake: Switch to --std=gnu++11 to fix builds with POWER
authorNeal Gompa <ngompa13@gmail.com>
Mon, 19 Dec 2016 18:30:13 +0000 (13:30 -0500)
committerNeal Gompa <ngompa13@gmail.com>
Mon, 19 Dec 2016 18:30:13 +0000 (13:30 -0500)
commitb32cd80b243d77cd80e026c7ae73e33ec39b1de9
tree3ca260a4fb036999374d16a86eae0694206020b9
parent5d3b7560a50c3656ec441343359508c9de1290ca
CMake: Switch to --std=gnu++11 to fix builds with POWER

On POWER architectures (ppc64/ppc64le), the AltiVec SIMD instructions
overload bool with vector ints, causing builds to fail because vector
data cannot be cast to scalar data. However, this only happens on c++11
mode. In gnu+11 mode, the usage of AltiVec overload attributes is
contextual, so it doesn't cause builds to fail anymore.
CMakeLists.txt