From 75f939bf1eb0661a4d1d63e415a5c1e564a582e4 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Wed, 27 Dec 2017 16:07:58 -1000 Subject: [PATCH] Add URDE_CROSSCOMPILING option to CMake --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a383a6036..911bbd394 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,11 @@ endif() project(urde) +option(URDE_CROSSCOMPILING "Don't build tools; attempt package import" Off) +if (URDE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING On) +endif() + set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(BUILD_SHARED_LIBS OFF CACHE BOOL "Force shared libs off" FORCE)