From fbf320af95bc185e1ac0acd66f33212cfd87fadc Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Fri, 9 Nov 2012 17:02:43 +0100 Subject: [PATCH] cmake: changed to disable to build ccmake at toolchain stage --- develop/cmake/cmake.conf | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/develop/cmake/cmake.conf b/develop/cmake/cmake.conf index 1a65e00ed..e707929ea 100644 --- a/develop/cmake/cmake.conf +++ b/develop/cmake/cmake.conf @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../cmake/cmake.conf -# Copyright (C) 2009 - 2011 The OpenSDE Project +# Copyright (C) 2009 - 2012 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # # More information can be found in the files COPYING and README. @@ -19,6 +19,18 @@ cleanconfopt=0 cmake_preconf() { mkdir build cd build + + # tweaks when bootstraping cmake in toolchain stage + if atstage toolchain; then + var_append confopt ' ' "--init=build-flags.cmake" + # disable to build ccmake (curses gui) because of linking + # issues when ncurses was configured to build a standalone + # libtinfo. + # besides that there is no need for an interactive gui at + # toolchain stage anyway + echo 'SET(BUILD_CursesDialog FALSE CACHE BOOL "" FORCE)' >> build-flags.cmake + fi + } hook_add preconf 9 'cmake_preconf'