Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
47 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -25,6 +25,8 @@ | ||
# Packagers (or people using make install) have to set this variable to an absolute path. | ||
wl_set_if_unset(WL_INSTALL_DATADIR "./data") | ||
|
||
+wl_set_if_unset(WL_INSTALL_BINARY "./bin") | ||
+ | ||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") | ||
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.7) | ||
message(FATAL_ERROR "Widelands needs GCC >= 4.7 to compile.") | ||
|
||
--- a/cmake/WlFunctions.cmake | ||
+++ b/cmake/WlFunctions.cmake | ||
@@ -276,5 +276,5 @@ | ||
|
||
#Quoting the CMake documentation on DESTINATION: | ||
#"If a relative path is given it is interpreted relative to the value of CMAKE_INSTALL_PREFIX" | ||
- install(TARGETS ${NAME} DESTINATION "." COMPONENT ExecutableFiles) | ||
+ install(TARGETS ${NAME} DESTINATION ${WL_INSTALL_BINARY} COMPONENT ExecutableFiles) | ||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters