Merge topic 'doc-try_compile-debug-advice'
abbe91c5
Help: Clarify --debug-trycompile usage with try_compile
This commit is contained in:
commit
0ad4f28fc0
|
@ -36,9 +36,10 @@ cleaned automatically. For debugging, --debug-trycompile can be
|
||||||
passed to cmake to avoid this clean. However, multiple sequential
|
passed to cmake to avoid this clean. However, multiple sequential
|
||||||
try_compile operations reuse this single output directory. If you use
|
try_compile operations reuse this single output directory. If you use
|
||||||
--debug-trycompile, you can only debug one try_compile call at a time.
|
--debug-trycompile, you can only debug one try_compile call at a time.
|
||||||
The recommended procedure is to configure with cmake all the way
|
The recommended procedure is to protect all try_compile calls in your
|
||||||
through once, then delete the cache entry associated with the
|
project by ``if(NOT DEFINED RESULT_VAR)`` logic, configure with cmake
|
||||||
try_compile call of interest, and then re-run cmake again with
|
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.
|
--debug-trycompile.
|
||||||
|
|
||||||
Some extra flags that can be included are, INCLUDE_DIRECTORIES,
|
Some extra flags that can be included are, INCLUDE_DIRECTORIES,
|
||||||
|
|
Loading…
Reference in New Issue