Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
519f9d81
Commit
519f9d81
authored
Mar 08, 2001
by
Brad King
💬
Browse files
ENH: Creation of generator rule now properly uses the custom command's m_Source member.
parent
71153219
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/cmCablePackageCommand.cxx
View file @
519f9d81
...
...
@@ -38,11 +38,9 @@ bool cmCablePackageCommand::Invoke(std::vector<std::string>& args)
// Add custom rules to the makefile to generate this package's source
// files.
std
::
vector
<
std
::
string
>
depends
;
depends
.
push_back
(
"cable_config.xml"
);
std
::
string
command
=
"${CABLE}"
;
m_Makefile
->
ExpandVariablesInString
(
command
);
std
::
vector
<
std
::
string
>
depends
;
depends
.
push_back
(
command
);
command
+=
" cable_config.xml"
;
...
...
@@ -51,13 +49,13 @@ bool cmCablePackageCommand::Invoke(std::vector<std::string>& args)
std
::
string
packageSource
=
packageFile
+
".cxx"
;
// A rule for the package's header file.
m_Makefile
->
AddCustomCommand
(
""
,
m_Makefile
->
AddCustomCommand
(
"
cable_config.xml
"
,
packageHeader
.
c_str
(),
command
.
c_str
(),
depends
);
// A rule for the package's source file.
m_Makefile
->
AddCustomCommand
(
""
,
m_Makefile
->
AddCustomCommand
(
"
cable_config.xml
"
,
packageSource
.
c_str
(),
command
.
c_str
(),
depends
);
...
...
Write
Preview
Supports
Markdown
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