Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CMake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
André Pedro
CMake
Commits
80574a38
Commit
80574a38
authored
8 years ago
by
Stephen Kelly
Committed by
Brad King
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Codelite: Consume the CMAKE_CODELITE_USE_TARGETS setting globally
parent
f59e8779
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Help/variable/CMAKE_CODELITE_USE_TARGETS.rst
+3
-2
3 additions, 2 deletions
Help/variable/CMAKE_CODELITE_USE_TARGETS.rst
Source/cmExtraCodeLiteGenerator.cxx
+1
-3
1 addition, 3 deletions
Source/cmExtraCodeLiteGenerator.cxx
with
4 additions
and
5 deletions
Help/variable/CMAKE_CODELITE_USE_TARGETS.rst
+
3
−
2
View file @
80574a38
...
...
@@ -3,5 +3,6 @@ CMAKE_CODELITE_USE_TARGETS
Change the way the CodeLite generator creates projectfiles.
If this variable is set to ``ON`` the generator creates projectfiles
based on targets rather than projects.
If this variable evaluates to ``ON`` at the end of the top-level
``CMakeLists.txt`` file, the generator creates projectfiles based on targets
rather than projects.
This diff is collapsed.
Click to expand it.
Source/cmExtraCodeLiteGenerator.cxx
+
1
−
3
View file @
80574a38
...
...
@@ -60,7 +60,6 @@ void cmExtraCodeLiteGenerator::Generate()
// loop projects and locate the root project.
// and extract the information for creating the worspace
// root makefile
const
cmMakefile
*
rmf
=
CM_NULLPTR
;
for
(
std
::
map
<
std
::
string
,
std
::
vector
<
cmLocalGenerator
*>
>::
const_iterator
it
=
projectMap
.
begin
();
it
!=
projectMap
.
end
();
++
it
)
{
...
...
@@ -75,7 +74,6 @@ void cmExtraCodeLiteGenerator::Generate()
workspaceFileName
=
workspaceOutputDir
+
"/"
;
workspaceFileName
+=
workspaceProjectName
+
".workspace"
;
this
->
WorkspacePath
=
it
->
second
[
0
]
->
GetCurrentBinaryDirectory
();
rmf
=
it
->
second
[
0
]
->
GetMakefile
();
;
break
;
}
...
...
@@ -89,7 +87,7 @@ void cmExtraCodeLiteGenerator::Generate()
xml
.
Attribute
(
"Name"
,
workspaceProjectName
);
bool
const
targetsAreProjects
=
rmf
&&
rmf
->
IsOn
(
"CMAKE_CODELITE_USE_TARGETS"
);
this
->
GlobalGenerator
->
GlobalSetting
IsOn
(
"CMAKE_CODELITE_USE_TARGETS"
);
std
::
vector
<
std
::
string
>
ProjectNames
;
if
(
targetsAreProjects
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment