Commit graph

8 commits

Author SHA1 Message Date
David Seifert
533c0b8005 Use GNUInstallDirs to specify directories
* GNUInstallDirs is the only Kitware-supported
  way to change the default directories. Most
  distributions have hooks for changing these
  directories, which makes integrating wesnoth
  easier and more consistent with the rest of
  the CMake ecosystem.
* Make build system perfectly out-of-source
  compatible. The build system should never
  touch files in the source tree.
2017-11-17 13:41:32 -06:00
Boris Nagaev
6e08864345 respect CMAKE_MODULE_PATH provided by user
Cross-compiling to Windows with MXE [1] requires providing custom
CMAKE_MODULE_PATH variable for CMake:

$ cmake -DCMAKE_MODULE_PATH=/file/provided/by/mxe.cmake

As Wesnoth's CMakeLists.txt resets CMAKE_MODULE_PATH, the effect of
CMAKE_MODULE_PATH provided by MXE is disabled and the build fails
with linking errors [2].

This commit changes CMakeLists.txt to respect the value of
user provided CMAKE_MODULE_PATH, so both MXE and Wesnoth
customizations of CMake variables are applied.

[1] http://mxe.cc/
[2] https://gist.github.com/starius/abfb9033d92f21ef521d
2015-11-08 14:56:28 +03:00
Mark de Wever
2b9ddcea2c Formatting cleanup of cmake files. 2011-01-16 10:31:25 +00:00
Mark de Wever
afd1a0bfbe Add cmake update-po4a-man(ual) targets.
Still needs more polishing and optimization, but with autotools
support removed want to get something working in first.
2011-01-02 11:05:43 +00:00
Nils Kneuper
e0d763b041 some more cleanup of the old editor cruft 2008-10-04 18:33:01 +00:00
Moritz Göbelbecker
b8f885f2dc Fix two syntax errors which for some reason didn't occur on my machine. 2008-05-22 16:31:18 +00:00
Moritz Göbelbecker
e7d41dfd80 Add fribidi support to cmake.
Add option to disable nls.
2008-05-14 12:15:17 +00:00
Moritz Göbelbecker
12d1d7247d Add cmake support for manual generation/translation/installation
Add cmake support for manpage installation

Workaround for a bug in cmake 2.4.7
2008-05-12 23:00:16 +00:00