[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gawk-diffs] [SCM] gawk branch, cmake, updated. gawk-4.1.0-95-g20c76cf

From: Juergen Kahrs
Subject: [gawk-diffs] [SCM] gawk branch, cmake, updated. gawk-4.1.0-95-g20c76cf
Date: Sun, 19 May 2013 13:55:22 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, cmake has been updated
       via  20c76cfdadff3bf969279038ac0408ec179a8efd (commit)
      from  540418bc7d1f84f7f1cdabbc9ccb093447f1c320 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------

commit 20c76cfdadff3bf969279038ac0408ec179a8efd
Author: Juergen Kahrs <address@hidden>
Date:   Sun May 19 15:55:07 2013 +0200

    First outline of the configure script invokes cmake.

diff --git a/cmake/configure b/cmake/configure
old mode 100644
new mode 100755
index f79d4c4..922568d
--- a/cmake/configure
+++ b/cmake/configure
@@ -1,3 +1,4 @@
 # On 2013-05-14 Arnold wrote in an e-mail:
 # <QUOTE)
@@ -13,7 +14,35 @@
 # but I do want the ones I've added in
 # </QUOTE)
 # Anyone using this script still needs an out-of-source build directory.
-# This script should first check if it was invoked from outside the source 
-# Then it shall evaluate all the options and translate the options into CMake 
-# Finally the script shall invoke CMake.
+if [ -f CMakeLists.txt ] ; then
+  echo "Your current working directory contains a file CMakeLists.txt, 
+  echo "that this is a source directory. Create a new directory elsewhere, 
change into"
+  echo "this empty directory and try again."
+  echo "  mkdir build"
+  echo "  cd build"
+  echo "  ../$0"
+  exit 1
+if ! [ -f ../CMakeLists.txt ] ; then
+  echo "The directory above your current working directory does not contain a 
file CMakeLists.txt."
+  echo "This script will run only if you are one level below the source 
+  exit 1
+# TODO: Evaluate all the options and translate the options into CMake 
+CC=$( which cc )
+rm -f Toolchain.cmake
+  echo "set(CMAKE_C_COMPILER $CC)"
+) > Toolchain.cmake
+# TODO: Allow the build directory to be in other places.
+# A parameter is needed to pass the value.
+cmake -DCMAKE_TOOLCHAIN_FILE=Toolchain.cmake ..


Summary of changes:
 cmake/configure |   35 ++++++++++++++++++++++++++++++++---
 1 files changed, 32 insertions(+), 3 deletions(-)
 mode change 100644 => 100755 cmake/configure


reply via email to

[Prev in Thread] Current Thread [Next in Thread]