Skip to content

Instantly share code, notes, and snippets.

@apoleon
Created October 23, 2016 18:24
Show Gist options
  • Save apoleon/6345b3aa48f21ea42e64d59273e332ec to your computer and use it in GitHub Desktop.
Save apoleon/6345b3aa48f21ea42e64d59273e332ec to your computer and use it in GitHub Desktop.
freeorion: Allow installation of libraries into Multiarch directories
Description: the include(GNUInstallDirs) should go *after* "project" declaration.
Author: Gianfranco Costamagna <locutusofborg@debian.org>
Last-Update: 2016-10-23
--- freeorion-0.4.6.orig/CMakeLists.txt
+++ freeorion-0.4.6/CMakeLists.txt
@@ -1,7 +1,5 @@
cmake_minimum_required(VERSION 2.8.5)
-include(GNUInstallDirs)
-
list(APPEND CMAKE_MODULE_PATH ${CMAKE_HOME_DIRECTORY}/cmake ${CMAKE_HOME_DIRECTORY}/GG/cmake)
set(CMAKE_CONFIGURATION_TYPES Debug Release)
IF(NOT CMAKE_BUILD_TYPE)
@@ -18,6 +16,8 @@ message(STATUS "Build type CMAKE_BUILD_T
########################################
project(FreeOrion)
+include(GNUInstallDirs)
+
set(FreeOrion_VERSION 0.4.6)
set(MINIMUM_BOOST_VERSION 1.54.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment