Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CMake
CMake
Commits
2b9cc1e2
Commit
2b9cc1e2
authored
Oct 17, 2015
by
Stephen Kelly
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export: Port some API to cmGlobalGenerator.
parent
97062ac2
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
16 deletions
+13
-16
Source/cmExportBuildFileGenerator.cxx
Source/cmExportBuildFileGenerator.cxx
+7
-5
Source/cmExportBuildFileGenerator.h
Source/cmExportBuildFileGenerator.h
+1
-2
Source/cmExportFileGenerator.cxx
Source/cmExportFileGenerator.cxx
+0
-1
Source/cmExportFileGenerator.h
Source/cmExportFileGenerator.h
+0
-1
Source/cmExportInstallFileGenerator.cxx
Source/cmExportInstallFileGenerator.cxx
+4
-4
Source/cmExportInstallFileGenerator.h
Source/cmExportInstallFileGenerator.h
+1
-2
Source/cmExportTryCompileFileGenerator.h
Source/cmExportTryCompileFileGenerator.h
+0
-1
No files found.
Source/cmExportBuildFileGenerator.cxx
View file @
2b9cc1e2
...
...
@@ -235,14 +235,17 @@ cmExportBuildFileGenerator
//----------------------------------------------------------------------------
void
cmExportBuildFileGenerator
::
HandleMissingTarget
(
std
::
string
&
link_libs
,
std
::
vector
<
std
::
string
>&
missingTargets
,
cmMakefile
*
mf
,
cmTarget
*
depender
,
cmTarget
*
dependee
)
std
::
string
&
link_libs
,
std
::
vector
<
std
::
string
>&
missingTargets
,
cmTarget
*
depender
,
cmTarget
*
dependee
)
{
// The target is not in the export.
if
(
!
this
->
AppendMode
)
{
const
std
::
string
name
=
dependee
->
GetName
();
std
::
vector
<
std
::
string
>
namespaces
=
this
->
FindNamespaces
(
mf
,
name
);
cmGlobalGenerator
*
gg
=
dependee
->
GetMakefile
()
->
GetGlobalGenerator
();
std
::
vector
<
std
::
string
>
namespaces
=
this
->
FindNamespaces
(
gg
,
name
);
int
targetOccurrences
=
(
int
)
namespaces
.
size
();
if
(
targetOccurrences
==
1
)
...
...
@@ -287,10 +290,9 @@ void cmExportBuildFileGenerator
//----------------------------------------------------------------------------
std
::
vector
<
std
::
string
>
cmExportBuildFileGenerator
::
FindNamespaces
(
cm
Makefile
*
mf
,
const
std
::
string
&
name
)
::
FindNamespaces
(
cm
GlobalGenerator
*
gg
,
const
std
::
string
&
name
)
{
std
::
vector
<
std
::
string
>
namespaces
;
cmGlobalGenerator
*
gg
=
mf
->
GetGlobalGenerator
();
std
::
map
<
std
::
string
,
cmExportBuildFileGenerator
*>&
exportSets
=
gg
->
GetBuildExportSets
();
...
...
Source/cmExportBuildFileGenerator.h
View file @
2b9cc1e2
...
...
@@ -54,7 +54,6 @@ protected:
std
::
vector
<
std
::
string
>
&
missingTargets
);
virtual
void
HandleMissingTarget
(
std
::
string
&
link_libs
,
std
::
vector
<
std
::
string
>&
missingTargets
,
cmMakefile
*
mf
,
cmTarget
*
depender
,
cmTarget
*
dependee
);
...
...
@@ -72,7 +71,7 @@ protected:
const
std
::
string
&
config
);
std
::
vector
<
std
::
string
>
FindNamespaces
(
cm
Makefile
*
mf
,
const
std
::
string
&
name
);
FindNamespaces
(
cm
GlobalGenerator
*
gg
,
const
std
::
string
&
name
);
std
::
vector
<
std
::
string
>
Targets
;
cmExportSet
*
ExportSet
;
...
...
Source/cmExportFileGenerator.cxx
View file @
2b9cc1e2
...
...
@@ -661,7 +661,6 @@ cmExportFileGenerator::AddTargetNamespace(std::string &input,
{
std
::
string
namespacedTarget
;
this
->
HandleMissingTarget
(
namespacedTarget
,
missingTargets
,
target
->
Target
->
GetMakefile
(),
target
->
Target
,
tgt
->
Target
);
if
(
!
namespacedTarget
.
empty
())
{
...
...
Source/cmExportFileGenerator.h
View file @
2b9cc1e2
...
...
@@ -119,7 +119,6 @@ protected:
* export set. */
virtual
void
HandleMissingTarget
(
std
::
string
&
link_libs
,
std
::
vector
<
std
::
string
>&
missingTargets
,
cmMakefile
*
mf
,
cmTarget
*
depender
,
cmTarget
*
dependee
)
=
0
;
void
PopulateInterfaceProperty
(
const
std
::
string
&
,
...
...
Source/cmExportInstallFileGenerator.cxx
View file @
2b9cc1e2
...
...
@@ -455,10 +455,11 @@ cmExportInstallFileGenerator
void
cmExportInstallFileGenerator
::
HandleMissingTarget
(
std
::
string
&
link_libs
,
std
::
vector
<
std
::
string
>&
missingTargets
,
cmMakefile
*
mf
,
cmTarget
*
depender
,
cmTarget
*
dependee
)
cmTarget
*
depender
,
cmTarget
*
dependee
)
{
const
std
::
string
name
=
dependee
->
GetName
();
std
::
vector
<
std
::
string
>
namespaces
=
this
->
FindNamespaces
(
mf
,
name
);
cmGlobalGenerator
*
gg
=
dependee
->
GetMakefile
()
->
GetGlobalGenerator
();
std
::
vector
<
std
::
string
>
namespaces
=
this
->
FindNamespaces
(
gg
,
name
);
int
targetOccurrences
=
(
int
)
namespaces
.
size
();
if
(
targetOccurrences
==
1
)
{
...
...
@@ -479,10 +480,9 @@ cmExportInstallFileGenerator::HandleMissingTarget(
//----------------------------------------------------------------------------
std
::
vector
<
std
::
string
>
cmExportInstallFileGenerator
::
FindNamespaces
(
cm
Makefile
*
mf
,
const
std
::
string
&
name
)
::
FindNamespaces
(
cm
GlobalGenerator
*
gg
,
const
std
::
string
&
name
)
{
std
::
vector
<
std
::
string
>
namespaces
;
cmGlobalGenerator
*
gg
=
mf
->
GetGlobalGenerator
();
const
cmExportSetMap
&
exportSets
=
gg
->
GetExportSets
();
for
(
cmExportSetMap
::
const_iterator
expIt
=
exportSets
.
begin
();
...
...
Source/cmExportInstallFileGenerator.h
View file @
2b9cc1e2
...
...
@@ -57,7 +57,6 @@ protected:
std
::
vector
<
std
::
string
>
&
missingTargets
);
virtual
void
HandleMissingTarget
(
std
::
string
&
link_libs
,
std
::
vector
<
std
::
string
>&
missingTargets
,
cmMakefile
*
mf
,
cmTarget
*
depender
,
cmTarget
*
dependee
);
...
...
@@ -67,7 +66,7 @@ protected:
cmTarget
*
dependee
,
int
occurrences
);
std
::
vector
<
std
::
string
>
FindNamespaces
(
cm
Makefile
*
mf
,
std
::
vector
<
std
::
string
>
FindNamespaces
(
cm
GlobalGenerator
*
gg
,
const
std
::
string
&
name
);
...
...
Source/cmExportTryCompileFileGenerator.h
View file @
2b9cc1e2
...
...
@@ -37,7 +37,6 @@ protected:
std
::
vector
<
std
::
string
>&
)
{}
virtual
void
HandleMissingTarget
(
std
::
string
&
,
std
::
vector
<
std
::
string
>&
,
cmMakefile
*
,
cmTarget
*
,
cmTarget
*
)
{}
...
...
Brad King
@brad.king
mentioned in commit
9afbb733
·
Feb 02, 2016
mentioned in commit
9afbb733
mentioned in commit 9afbb733ec2a55424e6c25c6afa7fdd14219d6b1
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