summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorglx22 <glx@openttd.org>2020-07-01 02:52:32 +0200
committerOwen Rudge <owen@owenrudge.net>2020-12-04 09:49:31 +0000
commita06fe8e8a7d749f1fbd08102a9516acd51171b24 (patch)
tree97b90a5a5229c8c1fae0729cf8ccba18d08243f5 /cmake
parent0b2dd2c5cd39833945fcea3a39811898bf40c6b5 (diff)
downloadopenttd-a06fe8e8a7d749f1fbd08102a9516acd51171b24.tar.xz
Fix: [CMake] cross-compiling requires native tools
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Options.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/Options.cmake b/cmake/Options.cmake
index 0167ad0a6..005bb19ca 100644
--- a/cmake/Options.cmake
+++ b/cmake/Options.cmake
@@ -35,6 +35,8 @@ function(set_directory_options)
set(GLOBAL_DIR "${DEFAULT_GLOBAL_DIR}" CACHE STRING "Global directory")
message(STATUS "Detecting Global Data directory - ${GLOBAL_DIR}")
endif()
+
+ set(HOST_BINARY_DIR "" CACHE PATH "Full path to native cmake build directory")
endfunction()
# Set some generic options that influence what is being build.