[Cmake-commits] CMake branch, next, updated. v3.8.0-rc1-460-g4375971
Brad King
brad.king at kitware.com
Wed Feb 22 13:23:27 EST 2017
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 "CMake".
The branch, next has been updated
via 4375971fb861de2a194f61668006fe2ce6641f0a (commit)
via 0372802e4961bbcf05b6f5a4df447a7f19492b9b (commit)
from c42f62b6bed8248fd99a48737c14054d09f973a7 (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 -----------------------------------------------------------------
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=4375971fb861de2a194f61668006fe2ce6641f0a
commit 4375971fb861de2a194f61668006fe2ce6641f0a
Merge: c42f62b 0372802
Author: Brad King <brad.king at kitware.com>
AuthorDate: Wed Feb 22 13:23:26 2017 -0500
Commit: CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Wed Feb 22 13:23:26 2017 -0500
Merge topic 'cmake_m4_find_package_var_check' into next
0372802e cmake.m4: do not set _XXXFLAGS or _LIBS var if already set
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0372802e4961bbcf05b6f5a4df447a7f19492b9b
commit 0372802e4961bbcf05b6f5a4df447a7f19492b9b
Author: John Donoghue <john.donoghue at ieee.org>
AuthorDate: Sun Feb 12 13:57:19 2017 -0500
Commit: Brad King <brad.king at kitware.com>
CommitDate: Wed Feb 22 13:22:42 2017 -0500
cmake.m4: do not set _XXXFLAGS or _LIBS var if already set
* Auxiliary/cmake.m4 (CMAKE_FIND_PACKAGE): change var tests from -n to -z
to check if var is already set before calling cmake
Fixes: #16663
diff --git a/Auxiliary/cmake.m4 b/Auxiliary/cmake.m4
index 3ef4c16..7beff41 100644
--- a/Auxiliary/cmake.m4
+++ b/Auxiliary/cmake.m4
@@ -24,10 +24,10 @@ AC_ARG_VAR([$1][_LIBS], [linker flags for $1. This overrides the cmake output])d
failed=false
AC_MSG_CHECKING([for $1])
-if test -n "$1[]_$2[]FLAGS"; then
+if test -z "${$1[]_$2[]FLAGS}"; then
$1[]_$2[]FLAGS=`$CMAKE_BINARY --find-package "-DNAME=$1" "-DCOMPILER_ID=m4_default([$3], [GNU])" "-DLANGUAGE=$2" -DMODE=COMPILE $4` || failed=true
fi
-if test -n "$1[]_LIBS"; then
+if test -z "${$1[]_LIBS}"; then
$1[]_LIBS=`$CMAKE_BINARY --find-package "-DNAME=$1" "-DCOMPILER_ID=m4_default([$3], [GNU])" "-DLANGUAGE=$2" -DMODE=LINK $4` || failed=true
fi
-----------------------------------------------------------------------
Summary of changes:
Auxiliary/cmake.m4 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
CMake
More information about the Cmake-commits
mailing list