[Commits] [wesnoth/wesnoth] cd7978: CMake: demote failure to compile IEEE 754 test fro...

GitHub noreply at github.com
Mon Mar 13 19:38:08 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: cd79780b682586feb3d0cd4e3d79cd88016a790e
      https://github.com/wesnoth/wesnoth/commit/cd79780b682586feb3d0cd4e3d79cd88016a790e
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2017-03-13 (Mon, 13 Mar 2017)

  Changed paths:
    M CMakeLists.txt

  Log Message:
  -----------
  CMake: demote failure to compile IEEE 754 test from error to warning

Apparently due to a CMake bug, some (but not all) CMake versions attempt to
compile the test with default flags, which means C++98 mode with GCC < 6.
As a result, compiling the test fails, and the whole game fails to build.

@gfgtdf pointed out to me that CMake reports the compile and run status
separately, and therefore it's possible to detect the situation where the
test fails to compile. Thus, I decided to allow building in that situation.





More information about the Commits mailing list