[Cmake-commits] CMake branch, next, updated. v3.0.1-5124-gedd3262
Brad King
brad.king at kitware.com
Wed Sep 3 11:21:01 EDT 2014
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 edd32628dec594b3d20b461f6a610597bc52aad2 (commit)
via abbe91c58ccf49dd60027ec5663154e54365f0fe (commit)
from 43ad355eef79c4400b518c0d66b0d64317574575 (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 -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=edd32628dec594b3d20b461f6a610597bc52aad2
commit edd32628dec594b3d20b461f6a610597bc52aad2
Merge: 43ad355 abbe91c
Author: Brad King <brad.king at kitware.com>
AuthorDate: Wed Sep 3 11:21:01 2014 -0400
Commit: CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Wed Sep 3 11:21:01 2014 -0400
Merge topic 'doc-try_compile-debug-advice' into next
abbe91c5 Help: Clarify --debug-trycompile usage with try_compile
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=abbe91c58ccf49dd60027ec5663154e54365f0fe
commit abbe91c58ccf49dd60027ec5663154e54365f0fe
Author: Alan W. Irwin <airwin at users.sourceforge.net>
AuthorDate: Wed Sep 3 07:03:12 2014 -0700
Commit: Brad King <brad.king at kitware.com>
CommitDate: Wed Sep 3 11:19:52 2014 -0400
Help: Clarify --debug-trycompile usage with try_compile
Explain that try_compile calls need to be protected with conditions to
avoid running more than once so that it is easy to isolate a single
try_compile to perform with --debug-trycompile.
diff --git a/Help/command/try_compile.rst b/Help/command/try_compile.rst
index 8ed3cf4..224c67b 100644
--- a/Help/command/try_compile.rst
+++ b/Help/command/try_compile.rst
@@ -36,9 +36,10 @@ cleaned automatically. For debugging, --debug-trycompile can be
passed to cmake to avoid this clean. However, multiple sequential
try_compile operations reuse this single output directory. If you use
--debug-trycompile, you can only debug one try_compile call at a time.
-The recommended procedure is to configure with cmake all the way
-through once, then delete the cache entry associated with the
-try_compile call of interest, and then re-run cmake again with
+The recommended procedure is to protect all try_compile calls in your
+project by ``if(NOT DEFINED RESULT_VAR)`` logic, configure with cmake
+all the way through once, then delete the cache entry associated with
+the try_compile call of interest, and then re-run cmake again with
--debug-trycompile.
Some extra flags that can be included are, INCLUDE_DIRECTORIES,
-----------------------------------------------------------------------
Summary of changes:
Help/command/try_compile.rst | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
hooks/post-receive
--
CMake
More information about the Cmake-commits
mailing list