From a41e5e319bad4d32a736477251cb07dd28d22ba2 Mon Sep 17 00:00:00 2001 From: Nils Kneuper Date: Tue, 20 Jan 2015 08:08:21 +0100 Subject: [PATCH] fixed building wesnothd without game thanks mr_bones_ for reporting the issue --- CMakeLists.txt | 8 ++++++++ changelog | 1 + 2 files changed, 9 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 55a53575feaa..de6ac440976d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -597,6 +597,14 @@ if(ENABLE_GAME) endif(ENABLE_GAME) +if(ENABLE_SERVER) + if(ENABLE_BOOST_FILESYSTEM AND NOT ENABLE_PANDORA) + find_package( Boost 1.44 REQUIRED COMPONENTS filesystem ) + find_package( Boost 1.48 REQUIRED COMPONENTS locale ) + endif(ENABLE_BOOST_FILESYSTEM AND NOT ENABLE_PANDORA) +endif(ENABLE_SERVER) + + if(ENABLE_POT_UPDATE_TARGET) find_package(TranslationTools REQUIRED) endif(ENABLE_POT_UPDATE_TARGET) diff --git a/changelog b/changelog index 3fc56ab5f7c4..ec705017489d 100644 --- a/changelog +++ b/changelog @@ -65,6 +65,7 @@ Version 1.12.0+dev: (bug #18926). * Disallowed toggling Delayed Shroud Updates when not the player's turn as it causes OOS. + * Fixed problems building wesnothd using cmake if not building the game Version 1.12.0: * Language and i18n: