mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
Help: Check*Runs requires exit code 0 for success
Explicitly state this requirement to avoid ambiguity in what is 'success' of a program.
This commit is contained in:
@@ -19,9 +19,9 @@ subsequently be run.
|
||||
function.
|
||||
|
||||
The result is stored in the internal cache variable specified by
|
||||
``<resultVar>``. Success of build and run is indicated by boolean ``true``.
|
||||
Failure to build or run is indicated by boolean ``false`` such as an empty
|
||||
string or an error message.
|
||||
``<resultVar>``. If the code builds and runs with exit code ``0``, success is
|
||||
indicated by boolean ``true``. Failure to build or run is indicated by boolean
|
||||
``false``, such as an empty string or an error message.
|
||||
|
||||
See also :command:`check_source_runs` for a more general command syntax.
|
||||
|
||||
|
||||
@@ -19,9 +19,9 @@ subsequently be run.
|
||||
function.
|
||||
|
||||
The result is stored in the internal cache variable specified by
|
||||
``<resultVar>``. Success of build and run is indicated by boolean ``true``.
|
||||
Failure to build or run is indicated by boolean ``false`` such as an empty
|
||||
string or an error message.
|
||||
``<resultVar>``. If the code builds and runs with exit code ``0``, success is
|
||||
indicated by boolean ``true``. Failure to build or run is indicated by boolean
|
||||
``false``, such as an empty string or an error message.
|
||||
|
||||
See also :command:`check_source_runs` for a more general command syntax.
|
||||
|
||||
|
||||
@@ -21,9 +21,9 @@ subsequently be run.
|
||||
executable, and then run. The ``<code>`` must contain a Fortran ``program``.
|
||||
|
||||
The result is stored in the internal cache variable specified by
|
||||
``<resultVar>``. Success of build and run is indicated by boolean ``true``.
|
||||
Failure to build or run is indicated by boolean ``false`` such as an empty
|
||||
string or an error message.
|
||||
``<resultVar>``. If the code builds and runs with exit code ``0``, success is
|
||||
indicated by boolean ``true``. Failure to build or run is indicated by boolean
|
||||
``false``, such as an empty string or an error message.
|
||||
|
||||
.. code-block:: cmake
|
||||
|
||||
|
||||
@@ -21,9 +21,9 @@ can subsequently be run.
|
||||
function.
|
||||
|
||||
The result is stored in the internal cache variable specified by
|
||||
``<resultVar>``. Success of build and run is indicated by boolean ``true``.
|
||||
Failure to build or run is indicated by boolean ``false`` such as an empty
|
||||
string or an error message.
|
||||
``<resultVar>``. If the code builds and runs with exit code ``0``, success is
|
||||
indicated by boolean ``true``. Failure to build or run is indicated by boolean
|
||||
``false``, such as an empty string or an error message.
|
||||
|
||||
See also :command:`check_source_runs` for a more general command syntax.
|
||||
|
||||
|
||||
@@ -21,9 +21,9 @@ and can subsequently be run.
|
||||
function.
|
||||
|
||||
The result is stored in the internal cache variable specified by
|
||||
``<resultVar>``. Success of build and run is indicated by boolean ``true``.
|
||||
Failure to build or run is indicated by boolean ``false`` such as an empty
|
||||
string or an error message.
|
||||
``<resultVar>``. If the code builds and runs with exit code ``0``, success is
|
||||
indicated by boolean ``true``. Failure to build or run is indicated by boolean
|
||||
``false``, such as an empty string or an error message.
|
||||
|
||||
See also :command:`check_source_runs` for a more general command syntax.
|
||||
|
||||
|
||||
@@ -23,9 +23,9 @@ subsequently be run.
|
||||
a ``main()`` function, or in Fortran a ``program``.
|
||||
|
||||
The result is stored in the internal cache variable specified by
|
||||
``<resultVar>``. Success of build and run is indicated by boolean ``true``.
|
||||
Failure to build or run is indicated by boolean ``false`` such as an empty
|
||||
string or an error message.
|
||||
``<resultVar>``. If the code builds and runs with exit code ``0``, success is
|
||||
indicated by boolean ``true``. Failure to build or run is indicated by boolean
|
||||
``false``, such as an empty string or an error message.
|
||||
|
||||
By default, the test source file will be given a file extension that matches
|
||||
the requested language. The ``SRC_EXT`` option can be used to override this
|
||||
|
||||
Reference in New Issue
Block a user