Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
CMake
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3,183
Issues
3,183
List
Boards
Labels
Service Desk
Milestones
Merge Requests
14
Merge Requests
14
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CMake
CMake
Commits
6ce56028
Commit
6ce56028
authored
Aug 09, 2018
by
Vitaly Stakhovsky
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmVisualStudioGeneratorOptions::Parse(): const std::string& argument
parent
505a713a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
19 deletions
+19
-19
Source/cmLocalVisualStudio7Generator.cxx
Source/cmLocalVisualStudio7Generator.cxx
+4
-4
Source/cmVisualStudio10TargetGenerator.cxx
Source/cmVisualStudio10TargetGenerator.cxx
+11
-11
Source/cmVisualStudioGeneratorOptions.cxx
Source/cmVisualStudioGeneratorOptions.cxx
+3
-3
Source/cmVisualStudioGeneratorOptions.h
Source/cmVisualStudioGeneratorOptions.h
+1
-1
No files found.
Source/cmLocalVisualStudio7Generator.cxx
View file @
6ce56028
...
...
@@ -712,8 +712,8 @@ void cmLocalVisualStudio7Generator::WriteConfiguration(
targetOptions
.
FixExceptionHandlingDefault
();
std
::
string
asmLocation
=
configName
+
"/"
;
targetOptions
.
AddFlag
(
"AssemblerListingLocation"
,
asmLocation
);
targetOptions
.
Parse
(
flags
.
c_str
()
);
targetOptions
.
Parse
(
defineFlags
.
c_str
()
);
targetOptions
.
Parse
(
flags
);
targetOptions
.
Parse
(
defineFlags
);
targetOptions
.
ParseFinish
();
if
(
!
langForClCompile
.
empty
())
{
std
::
vector
<
std
::
string
>
targetDefines
;
...
...
@@ -990,7 +990,7 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(
}
linkOptions
.
AddTable
(
cmLocalVisualStudio7GeneratorLinkFlagTable
);
linkOptions
.
Parse
(
extraLinkOptions
.
c_str
()
);
linkOptions
.
Parse
(
extraLinkOptions
);
cmGeneratorTarget
::
ModuleDefinitionInfo
const
*
mdi
=
target
->
GetModuleDefinitionInfo
(
configName
);
if
(
mdi
&&
!
mdi
->
DefFile
.
empty
())
{
...
...
@@ -1735,7 +1735,7 @@ bool cmLocalVisualStudio7Generator::WriteGroup(
table
=
cmLocalVisualStudio7GeneratorFortranFlagTable
;
}
Options
fileOptions
(
this
,
tool
,
table
,
gg
->
ExtraFlagTable
);
fileOptions
.
Parse
(
fc
.
CompileFlags
.
c_str
()
);
fileOptions
.
Parse
(
fc
.
CompileFlags
);
fileOptions
.
AddDefines
(
fc
.
CompileDefs
);
fileOptions
.
AddDefines
(
fc
.
CompileDefsConfig
);
// validate source level include directories
...
...
Source/cmVisualStudio10TargetGenerator.cxx
View file @
6ce56028
...
...
@@ -2128,7 +2128,7 @@ void cmVisualStudio10TargetGenerator::OutputSourceSpecificFlags(
if
(
configDependentFlags
)
{
clOptions
.
Parse
(
genexInterpreter
.
Evaluate
(
flags
,
"COMPILE_FLAGS"
));
}
else
{
clOptions
.
Parse
(
flags
.
c_str
()
);
clOptions
.
Parse
(
flags
);
}
if
(
!
options
.
empty
())
{
std
::
string
expandedOptions
;
...
...
@@ -2139,7 +2139,7 @@ void cmVisualStudio10TargetGenerator::OutputSourceSpecificFlags(
}
else
{
this
->
LocalGenerator
->
AppendCompileOptions
(
expandedOptions
,
options
);
}
clOptions
.
Parse
(
expandedOptions
.
c_str
()
);
clOptions
.
Parse
(
expandedOptions
);
}
if
(
clOptions
.
HasFlag
(
"DisableSpecificWarnings"
))
{
clOptions
.
AppendFlag
(
"DisableSpecificWarnings"
,
...
...
@@ -2523,8 +2523,8 @@ bool cmVisualStudio10TargetGenerator::ComputeClOptions(
}
}
clOptions
.
Parse
(
flags
.
c_str
()
);
clOptions
.
Parse
(
defineFlags
.
c_str
()
);
clOptions
.
Parse
(
flags
);
clOptions
.
Parse
(
defineFlags
);
std
::
vector
<
std
::
string
>
targetDefines
;
switch
(
this
->
ProjectType
)
{
case
vcxproj
:
...
...
@@ -2691,7 +2691,7 @@ bool cmVisualStudio10TargetGenerator::ComputeRcOptions(
std
::
string
(
" "
)
+
std
::
string
(
this
->
Makefile
->
GetSafeDefinition
(
rcConfigFlagsVar
));
rcOptions
.
Parse
(
flags
.
c_str
()
);
rcOptions
.
Parse
(
flags
);
// For historical reasons, add the C preprocessor defines to RC.
Options
&
clOptions
=
*
(
this
->
ClOptions
[
configName
]);
...
...
@@ -2753,8 +2753,8 @@ bool cmVisualStudio10TargetGenerator::ComputeCudaOptions(
// Get preprocessor definitions for this directory.
std
::
string
defineFlags
=
this
->
Makefile
->
GetDefineFlags
();
cudaOptions
.
Parse
(
flags
.
c_str
()
);
cudaOptions
.
Parse
(
defineFlags
.
c_str
()
);
cudaOptions
.
Parse
(
flags
);
cudaOptions
.
Parse
(
defineFlags
);
cudaOptions
.
ParseFinish
();
// If we haven't explicitly enabled GPU debug information
...
...
@@ -2961,7 +2961,7 @@ bool cmVisualStudio10TargetGenerator::ComputeMasmOptions(
std
::
string
(
" "
)
+
std
::
string
(
this
->
Makefile
->
GetSafeDefinition
(
configFlagsVar
));
masmOptions
.
Parse
(
flags
.
c_str
()
);
masmOptions
.
Parse
(
flags
);
// Get includes for this target
masmOptions
.
AddIncludes
(
this
->
GetIncludes
(
configName
,
"ASM_MASM"
));
...
...
@@ -3018,7 +3018,7 @@ bool cmVisualStudio10TargetGenerator::ComputeNasmOptions(
this
->
Makefile
->
GetSafeDefinition
(
"CMAKE_ASM_NASM_OBJECT_FORMAT"
))
+
std
::
string
(
" "
)
+
std
::
string
(
this
->
Makefile
->
GetSafeDefinition
(
configFlagsVar
));
nasmOptions
.
Parse
(
flags
.
c_str
()
);
nasmOptions
.
Parse
(
flags
);
// Get includes for this target
nasmOptions
.
AddIncludes
(
this
->
GetIncludes
(
configName
,
"ASM_NASM"
));
...
...
@@ -3064,7 +3064,7 @@ void cmVisualStudio10TargetGenerator::WriteLibOptions(
cmVS10GeneratorOptions
libOptions
(
this
->
LocalGenerator
,
cmVisualStudioGeneratorOptions
::
Linker
,
gg
->
GetLibFlagTable
(),
this
);
libOptions
.
Parse
(
libflags
.
c_str
()
);
libOptions
.
Parse
(
libflags
);
OptionsHelper
oh
(
libOptions
,
e2
);
oh
.
PrependInheritedString
(
"AdditionalOptions"
);
oh
.
OutputFlagMap
();
...
...
@@ -3410,7 +3410,7 @@ bool cmVisualStudio10TargetGenerator::ComputeLinkOptions(
linkOptions
.
AddFlag
(
"SoName"
,
targetNameSO
);
}
linkOptions
.
Parse
(
flags
.
c_str
()
);
linkOptions
.
Parse
(
flags
);
linkOptions
.
FixManifestUACFlags
();
if
(
this
->
MSTools
)
{
...
...
Source/cmVisualStudioGeneratorOptions.cxx
View file @
6ce56028
...
...
@@ -297,12 +297,12 @@ void cmVisualStudioGeneratorOptions::FixManifestUACFlags()
AddFlag
(
ENABLE_UAC
,
"true"
);
}
void
cmVisualStudioGeneratorOptions
::
Parse
(
const
char
*
flags
)
void
cmVisualStudioGeneratorOptions
::
Parse
(
const
std
::
string
&
flags
)
{
// Parse the input string as a windows command line since the string
// is intended for writing directly into the build files.
std
::
vector
<
std
::
string
>
args
;
cmSystemTools
::
ParseWindowsCommandLine
(
flags
,
args
);
cmSystemTools
::
ParseWindowsCommandLine
(
flags
.
c_str
()
,
args
);
// Process flags that need to be represented specially in the IDE
// project file.
...
...
@@ -366,7 +366,7 @@ void cmVisualStudioGeneratorOptions::Reparse(std::string const& key)
std
::
string
const
original
=
i
->
second
[
0
];
i
->
second
[
0
]
=
""
;
this
->
UnknownFlagField
=
key
;
this
->
Parse
(
original
.
c_str
()
);
this
->
Parse
(
original
);
}
void
cmVisualStudioGeneratorOptions
::
StoreUnknownFlag
(
std
::
string
const
&
flag
)
...
...
Source/cmVisualStudioGeneratorOptions.h
View file @
6ce56028
...
...
@@ -42,7 +42,7 @@ public:
void
ClearTables
();
// Store options from command line flags.
void
Parse
(
const
char
*
flags
);
void
Parse
(
const
std
::
string
&
flags
);
void
ParseFinish
();
void
PrependInheritedString
(
std
::
string
const
&
key
);
...
...
Craig Scott
@craig.scott
mentioned in commit
ca2e7817
·
Aug 15, 2018
mentioned in commit
ca2e7817
mentioned in commit ca2e781703dab42f309bf31189011d69e37b954f
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