[wesnoth-commits] [wesnoth/wesnoth] e7ed3c: Fix linking of C++ unit tests with CMake

GitHub noreply at github.com
Sat Apr 7 10:15:59 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: e7ed3cbbb9ad474f2f89137fceece946eaa95e81
      https://github.com/wesnoth/wesnoth/commit/e7ed3cbbb9ad474f2f89137fceece946eaa95e81
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2018-04-07 (Sat, 07 Apr 2018)

  Changed paths:
    M src/CMakeLists.txt

  Log Message:
  -----------
  Fix linking of C++ unit tests with CMake

The problem with them is that the "libraries" into which Wesnoth is split
have circular dependencies, and linking of the game succeeds only by chance
(everything just happens to be used by the time the linker encounters it).

Fixed by allowing the linker to use multiple passes over the libraries
until all references are resolved.




More information about the Commits mailing list