Add URDE_CROSSCOMPILING option to CMake

This commit is contained in:
Jack Andersen 2017-12-27 16:07:58 -10:00
parent 06211d092f
commit 75f939bf1e
1 changed files with 5 additions and 0 deletions

View File

@ -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)