···1---- a/CMakeLists.txt
2-+++ b/CMakeLists.txt
3-@@ -25,6 +25,8 @@
4- # Packagers (or people using make install) have to set this variable to an absolute path.
5- wl_set_if_unset(WL_INSTALL_DATADIR "./data")
6-7-+wl_set_if_unset(WL_INSTALL_BINARY "./bin")
8-+
9- if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
10- if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.7)
11- message(FATAL_ERROR "Widelands needs GCC >= 4.7 to compile.")
12-13---- a/cmake/WlFunctions.cmake
14-+++ b/cmake/WlFunctions.cmake
15-@@ -276,5 +276,5 @@
16-17- #Quoting the CMake documentation on DESTINATION:
18- #"If a relative path is given it is interpreted relative to the value of CMAKE_INSTALL_PREFIX"
19-- install(TARGETS ${NAME} DESTINATION "." COMPONENT ExecutableFiles)
20-+ install(TARGETS ${NAME} DESTINATION ${WL_INSTALL_BINARY} COMPONENT ExecutableFiles)
21- endfunction()