Skip to content
GitLab
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
bd217452
Commit
bd217452
authored
Jan 09, 2003
by
Ken Martin
Browse files
more option on var watches
parent
dfa4cbd1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Source/cmMakefile.cxx
View file @
bd217452
...
...
@@ -921,7 +921,20 @@ const char* cmMakefile::GetDefinition(const char* name) const
}
else
{
vv
->
VariableAccessed
(
name
,
cmVariableWatch
::
UNKNOWN_VARIABLE_READ_ACCESS
);
// are unknown access allowed
DefinitionMap
::
const_iterator
pos2
=
m_Definitions
.
find
(
"CMAKE_ALLOW_UNKNOWN_VARIABLE_READ_ACCESS"
);
if
(
pos2
!=
m_Definitions
.
end
()
&&
cmSystemTools
::
IsOn
((
*
pos2
).
second
.
c_str
()))
{
vv
->
VariableAccessed
(
name
,
cmVariableWatch
::
ALLOWED_UNKNOWN_VARIABLE_READ_ACCESS
);
}
else
{
vv
->
VariableAccessed
(
name
,
cmVariableWatch
::
UNKNOWN_VARIABLE_READ_ACCESS
);
}
}
}
return
def
;
...
...
Source/cmVariableWatch.h
View file @
bd217452
...
...
@@ -49,6 +49,7 @@ public:
{
VARIABLE_READ_ACCESS
,
UNKNOWN_VARIABLE_READ_ACCESS
,
ALLOWED_UNKNOWN_VARIABLE_READ_ACCESS
,
VARIABLE_MODIFIED_ACCESS
,
VARIABLE_REMOVED_ACCESS
,
NO_ACCESS
...
...
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