summaryrefslogtreecommitdiffstats
path: root/Templates
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-06-29 13:30:01 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-06-29 13:30:01 (GMT)
commit08460462006d3d3a050317476fff4c8961da01c5 (patch)
treef550980fcc025f1206bf834bc6bc375b6a3a575f /Templates
parenta7f7366abdff30b8891a2d4c94e33f4e4760c42b (diff)
downloadCMake-08460462006d3d3a050317476fff4c8961da01c5.zip
CMake-08460462006d3d3a050317476fff4c8961da01c5.tar.gz
CMake-08460462006d3d3a050317476fff4c8961da01c5.tar.bz2
BUG: break up CMAKE_AR into program and ARGS
Diffstat (limited to 'Templates')
-rw-r--r--Templates/CMakeSystemConfig.cmake.in2
-rwxr-xr-xTemplates/configure6
-rw-r--r--Templates/configure.in5
3 files changed, 11 insertions, 2 deletions
diff --git a/Templates/CMakeSystemConfig.cmake.in b/Templates/CMakeSystemConfig.cmake.in
index d849b10..46c4e2e 100644
--- a/Templates/CMakeSystemConfig.cmake.in
+++ b/Templates/CMakeSystemConfig.cmake.in
@@ -16,6 +16,8 @@ SET (CMAKE_RANLIB "@RANLIB@" CACHE FILEPATH
" Library randomizer program used on archive libraries." )
SET (CMAKE_AR "@CMAKE_AR@" CACHE FILEPATH
" Archive program used to make archive libraries." )
+SET (CMAKE_AR_ARGS "@CMAKE_AR_ARGS@" CACHE STRING
+ " Arguments for CMAKE_AR program to create an archive library." )
SET (CMAKE_CXX_COMPILER "@CXX@" CACHE FILEPATH "CXX compiler used.")
SET (CMAKE_CXX_FLAGS "@CXXFLAGS@" CACHE STRING
"Flags used by CXX compiler")
diff --git a/Templates/configure b/Templates/configure
index ff3784d..e90fc78 100755
--- a/Templates/configure
+++ b/Templates/configure
@@ -3045,7 +3045,8 @@ fi
test -n "$CMAKE_AR_TMP" && break
done
-CMAKE_AR="$CMAKE_AR_TMP cr"
+CMAKE_AR="$CMAKE_AR_TMP"
+CMAKE_AR_ARGS="cr"
# if on SunOS and not using gXX then use the compiler to make .a libs
case $system in
SunOS-5*)
@@ -3054,10 +3055,12 @@ case $system in
else
echo "Using $CXX -xar -o for creating .a libraries"
CMAKE_AR="$CXX -xar -o"
+ CMAKE_AR_ARGS="-xar -o"
fi
esac
+
# generate output files.
# create mkdir files just to make some of the directories
@@ -3243,6 +3246,7 @@ s%@CMAKE_NO_ANSI_STREAM_HEADERS@%$CMAKE_NO_ANSI_STREAM_HEADERS%g
s%@RUNMAKE@%$RUNMAKE%g
s%@CMAKE_AR_TMP@%$CMAKE_AR_TMP%g
s%@CMAKE_AR@%$CMAKE_AR%g
+s%@CMAKE_AR_ARGS@%$CMAKE_AR_ARGS%g
CEOF
EOF
diff --git a/Templates/configure.in b/Templates/configure.in
index f75b573..5699375 100644
--- a/Templates/configure.in
+++ b/Templates/configure.in
@@ -542,7 +542,8 @@ fi
# find make to use to build cmake, prefer gmake
AC_PATH_PROGS(RUNMAKE, gmake make)
AC_PATH_PROGS(CMAKE_AR_TMP, ar)
-CMAKE_AR="$CMAKE_AR_TMP cr"
+CMAKE_AR="$CMAKE_AR_TMP"
+CMAKE_AR_ARGS="cr"
# if on SunOS and not using gXX then use the compiler to make .a libs
case $system in
SunOS-5*)
@@ -551,9 +552,11 @@ case $system in
else
echo "Using $CXX -xar -o for creating .a libraries"
CMAKE_AR="$CXX -xar -o"
+ CMAKE_AR_ARGS="-xar -o"
fi
esac
AC_SUBST(CMAKE_AR)
+AC_SUBST(CMAKE_AR_ARGS)
# generate output files.
# create mkdir files just to make some of the directories