summaryrefslogtreecommitdiffstats
path: root/Source/cmTryCompileCommand.h
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-04-12 20:21:54 (GMT)
committerDavid Cole <david.cole@kitware.com>2011-04-12 20:21:54 (GMT)
commit7f6f6060c33fc776c1bcf844cb8e197ee65b523d (patch)
tree6083792bc4d022024b0c632df5c9ba866528605c /Source/cmTryCompileCommand.h
parent8997dc935cc7a7fc750eb3aa0a9e1ce2353121a0 (diff)
downloadCMake-7f6f6060c33fc776c1bcf844cb8e197ee65b523d.zip
CMake-7f6f6060c33fc776c1bcf844cb8e197ee65b523d.tar.gz
CMake-7f6f6060c33fc776c1bcf844cb8e197ee65b523d.tar.bz2
CMake: Clarify the --debug-trycompile help text
Diffstat (limited to 'Source/cmTryCompileCommand.h')
-rw-r--r--Source/cmTryCompileCommand.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/Source/cmTryCompileCommand.h b/Source/cmTryCompileCommand.h
index 0c67a8b..9923d03 100644
--- a/Source/cmTryCompileCommand.h
+++ b/Source/cmTryCompileCommand.h
@@ -77,14 +77,20 @@ public:
"Specify COPY_FILE to get a copy of the linked executable at the "
"given fileName."
"\n"
- "In this version all files in bindir/CMakeFiles/CMakeTmp, "
- "will be cleaned automatically, for debugging a --debug-trycompile can "
- "be passed to cmake to avoid the clean. Some extra flags that "
- " can be included are, "
+ "In this version all files in bindir/CMakeFiles/CMakeTmp "
+ "will be 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 "
+ "--debug-trycompile."
+ "\n"
+ "Some extra flags that can be included are, "
"INCLUDE_DIRECTORIES, LINK_DIRECTORIES, and LINK_LIBRARIES. "
"COMPILE_DEFINITIONS are -Ddefinition that will be passed to the "
"compile line. "
-
"try_compile creates a CMakeList.txt "
"file on the fly that looks like this:\n"
" add_definitions( <expanded COMPILE_DEFINITIONS from calling "