Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CMake
CMake
Commits
33507e2a
Commit
33507e2a
authored
Feb 21, 2016
by
Ashley Whetter
Committed by
Brad King
Feb 24, 2016
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Help: Fix typos in cmake-packages.7 manual
parent
a5a5a685
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Help/manual/cmake-packages.7.rst
Help/manual/cmake-packages.7.rst
+5
-5
No files found.
Help/manual/cmake-packages.7.rst
View file @
33507e2a
...
...
@@ -89,7 +89,7 @@ a package is to set the ``CMAKE_PREFIX_PATH`` cache variable.
Config
-
file
packages
are
provided
by
upstream
vendors
as
part
of
development
packages
,
that
is
,
they
belong
with
the
header
files
and
any
other
files
provided
to
assist
downsteams
in
using
the
package
.
provided
to
assist
downst
r
eams
in
using
the
package
.
A
set
of
variables
which
provide
package
status
information
are
also
set
automatically
when
using
a
config
-
file
package
.
The
``<
Package
>
_FOUND
``
...
...
@@ -352,7 +352,7 @@ version-specific variables ``<Package>_VERSION``, ``<Package>_VERSION_MAJOR``,
used
to
export
the
targets
in
the
``
ClimbingStatsTargets
``
export
-
set
,
defined
previously
by
the
:
command
:`
install
(
TARGETS
)`
command
.
This
command
generates
the
``
ClimbingStatsTargets
.
cmake
``
file
to
contain
:
prop_tgt
:`
IMPORTED
`
targets
,
suitable
for
use
by
downsteams
and
arranges
to
install
it
to
targets
,
suitable
for
use
by
downst
r
eams
and
arranges
to
install
it
to
``
lib
/
cmake
/
ClimbingStats
``.
The
generated
``
ClimbingStatsConfigVersion
.
cmake
``
and
a
``
cmake
/
ClimbingStatsConfig
.
cmake
``
are
installed
to
the
same
location
,
completing
the
package
.
...
...
@@ -383,7 +383,7 @@ In this case, when using :command:`install(TARGETS)` the ``INCLUDES DESTINATION`
was
specified
.
This
causes
the
``
IMPORTED
``
targets
to
have
their
:
prop_tgt
:`
INTERFACE_INCLUDE_DIRECTORIES
`
populated
with
the
``
include
``
directory
in
the
:
variable
:`
CMAKE_INSTALL_PREFIX
`.
When
the
``
IMPORTED
``
target
is
used
by
downsteam
,
it
automatically
consumes
the
entries
from
target
is
used
by
downst
r
eam
,
it
automatically
consumes
the
entries
from
that
property
.
Creating
a
Package
Configuration
File
...
...
@@ -412,7 +412,7 @@ This can also be extended to cover dependencies:
target_link_libraries
(
ClimbingStats
PUBLIC
Stats
::
Types
)
As
the
``
Stats
::
Types
``
target
is
a
``
PUBLIC
``
dependency
of
``
ClimbingStats
``,
downsteams
must
also
find
the
``
Stats
``
package
and
link
to
the
``
Stats
::
Types
``
downst
r
eams
must
also
find
the
``
Stats
``
package
and
link
to
the
``
Stats
::
Types
``
library
.
The
``
Stats
``
package
should
be
found
in
the
``
ClimbingStatsConfig
.
cmake
``
file
to
ensure
this
.
The
``
find_dependency
``
macro
from
the
:
module
:`
CMakeFindDependencyMacro
`
helps
with
this
by
propagating
...
...
@@ -464,7 +464,7 @@ Creating a Package Configuration File for the Build Tree
The
:
command
:`
export
(
EXPORT
)`
command
creates
an
:
prop_tgt
:`
IMPORTED
`
targets
definition
file
which
is
specific
to
the
build
-
tree
,
and
is
not
relocatable
.
This
can
simil
i
arly
be
used
with
a
suitable
package
configuration
file
and
This
can
similarly
be
used
with
a
suitable
package
configuration
file
and
package
version
file
to
define
a
package
for
the
build
tree
which
may
be
used
without
installation
.
Consumers
of
the
build
tree
can
simply
ensure
that
the
:
variable
:`
CMAKE_PREFIX_PATH
`
contains
the
build
directory
,
or
set
the
...
...
Brad King
@brad.king
mentioned in commit
12f06552
·
Feb 24, 2016
mentioned in commit
12f06552
mentioned in commit 12f065521c3d9bd5b619c2ad01c81e485dfb8253
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment