From eafb9d28563cfc78250d0e0d6f12992e91156727 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Tue, 12 Mar 2024 14:54:55 +0100 Subject: CMake: Added USE_SYSTEM_GUICHAN option So that one can choose to build with the Guichan submodule also on other systems than macOS. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 3365ff83..9bf55225 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,7 @@ FIND_PACKAGE(Gettext) OPTION(WITH_OPENGL "Enable OpenGL support" ON) OPTION(ENABLE_NLS "Enable building of tranlations" ON) OPTION(ENABLE_MANASERV "Enable Manaserv support" ON) +OPTION(USE_SYSTEM_GUICHAN "Use system Guichan" ON) IF (WIN32) SET(PKG_DATADIR ".") @@ -52,7 +53,7 @@ ENDIF() # On macOS we need to build Guichan ourselves since it is disabled in Homebrew # This might also be a good idea for the Windows build -if(APPLE) +if(APPLE OR NOT USE_SYSTEM_GUICHAN) # This policy makes sure that the below options are not ignored by the # added Guichan CMakeLists.txt SET(CMAKE_POLICY_DEFAULT_CMP0077 NEW) -- cgit v1.2.3-70-g09d2