Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
5c6c4428
Commit
5c6c4428
authored
Jan 12, 2009
by
dt
Browse files
Fixes: Add install target and don't create runconfigurations for targets without executable.
Details: One step at a time.
parent
71ea85df
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cmakeprojectmanager/cmakeproject.cpp
View file @
5c6c4428
...
...
@@ -320,6 +320,8 @@ void CMakeProject::restoreSettingsImpl(ProjectExplorer::PersistentSettingsReader
qDebug
()
<<
"Create run configurations of m_targets"
;
bool
setActive
=
false
;
foreach
(
const
CMakeTarget
&
ct
,
m_targets
)
{
if
(
ct
.
executable
.
isEmpty
())
continue
;
QSharedPointer
<
ProjectExplorer
::
RunConfiguration
>
rc
(
new
CMakeRunConfiguration
(
this
,
ct
.
executable
,
ct
.
workingDirectory
));
addRunConfiguration
(
rc
);
// The first one gets the honour of beeing the active one
...
...
@@ -501,7 +503,7 @@ void CMakeCbpParser::parseTarget()
while
(
!
atEnd
())
{
readNext
();
if
(
isEndElement
())
{
if
(
m_targetType
||
m_target
.
title
==
"all"
)
{
if
(
m_targetType
||
m_target
.
title
==
"all"
||
m_target
.
title
==
"install"
)
{
m_targets
.
append
(
m_target
);
}
return
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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