From 457c111da2ffda54ac1ff3e7758f5ba0ccc5bc26 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 7 Jun 2012 12:43:37 -0700 Subject: [PATCH] order of commands needs to be altered so bindings get the correct include directory. --- src/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 916850f56..6f0c4e115 100755 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,8 +1,6 @@ cmake_minimum_required(VERSION 2.6) project (eressea C) -add_subdirectory(bindings) - IF(CMAKE_COMPILER_IS_GNUCC) SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pedantic -Wall -Werror -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wno-char-subscripts -Wno-long-long") ELSE(CMAKE_COMPILER_IS_GNUCC) @@ -12,6 +10,8 @@ ENDIF(CMAKE_COMPILER_IS_GNUCC) set (ERESSEA_LIBRARY ${PROJECT_NAME} CACHE INTERNAL "Eressea Core Library") set (ERESSEA_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "Eressea Core headers") +add_subdirectory(bindings) + find_package (Lua51 REQUIRED) find_package (ToLua REQUIRED) find_package (LibXml2 REQUIRED)