[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-96-g2dbda7d

From: Juergen Kahrs
Subject: [gawk-diffs] [SCM] gawk branch, cmake, updated. gawk-4.1.0-96-g2dbda7d
Date: Sun, 19 May 2013 15:15:46 +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  2dbda7d9bb23f050673841c42f845be539e19a2c (commit)
      from  20c76cfdadff3bf969279038ac0408ec179a8efd (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 2dbda7d9bb23f050673841c42f845be539e19a2c
Author: Juergen Kahrs <address@hidden>
Date:   Sun May 19 17:15:26 2013 +0200

    configure parameters CC and --prefix work now.

diff --git a/cmake/configure b/cmake/configure
index 922568d..356bdfc 100755
--- a/cmake/configure
+++ b/cmake/configure
@@ -34,6 +34,15 @@ fi
 # TODO: Evaluate all the options and translate the options into CMake 
 CC=$( which cc )
+for p in $@
+  if [ ${p:0:3} = "CC=" ]; then CC=${p:3}; fi
+  if [ ${p:0:9} = "--prefix=" ]; then PREFIX=-DCMAKE_INSTALL_PREFIX=${p:9}; fi
+CC=$( which $CC )
 rm -f Toolchain.cmake
   echo "set(CMAKE_C_COMPILER $CC)"
@@ -44,5 +53,5 @@ rm -f 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 ..
+cmake ${PREFIX} -DCMAKE_TOOLCHAIN_FILE=Toolchain.cmake ..


Summary of changes:
 cmake/configure |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)


reply via email to

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