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
3d5a724d
Commit
3d5a724d
authored
Jul 13, 2005
by
Bill Hoffman
Browse files
BUG: revert part of patch that set executable debug prefix as it breaks too much stuff
parent
1b115dc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/cmLocalVisualStudio6Generator.cxx
View file @
3d5a724d
...
...
@@ -780,7 +780,6 @@ void cmLocalVisualStudio6Generator
libPath
=
m_Makefile
->
GetDefinition
(
"LIBRARY_OUTPUT_PATH"
);
}
std
::
string
exePath
=
""
;
std
::
string
exePathDebug
=
""
;
if
(
m_Makefile
->
GetDefinition
(
"EXECUTABLE_OUTPUT_PATH"
))
{
exePath
=
m_Makefile
->
GetDefinition
(
"EXECUTABLE_OUTPUT_PATH"
);
...
...
@@ -975,37 +974,10 @@ void cmLocalVisualStudio6Generator
// if the executable has an output name then add the appropriate flag
if
(
target
.
GetProperty
(
"OUTPUT_NAME"
))
{
std
::
string
outputname
=
target
.
GetProperty
(
"OUTPUT_NAME"
);
libMultiLineOptions
+=
"# ADD LINK32 /out:"
;
libMultiLineOptions
+=
outputname
;
libMultiLineOptions
+=
target
.
GetProperty
(
"OUTPUT_NAME"
)
;
libMultiLineOptions
+=
"
\n
"
;
}
else
{
libMultiLineOptions
+=
"# ADD LINK32 /out:
\"
"
;
if
(
exePath
!=
""
)
{
libMultiLineOptions
+=
exePath
+
"/"
+
libName
+
".exe"
;
}
else
{
libMultiLineOptions
+=
std
::
string
(
libName
)
+
".exe"
;
}
libMultiLineOptions
+=
"
\"\n
"
;
libMultiLineOptionsForDebug
+=
"# ADD LINK32 /out:
\"
"
;
if
(
exePath
!=
""
)
{
libMultiLineOptionsForDebug
+=
exePath
+
"$(INTDIR)/"
+
libName
+
"D.exe"
;
}
else
{
libMultiLineOptionsForDebug
+=
std
::
string
(
"$(INTDIR)/"
)
+
std
::
string
(
libName
)
+
"D.exe"
;
}
libMultiLineOptionsForDebug
+=
"
\"\n
"
;
}
}
if
(
target
.
GetType
()
==
cmTarget
::
SHARED_LIBRARY
)
{
...
...
@@ -1114,7 +1086,6 @@ void cmLocalVisualStudio6Generator
libDebugOptions
.
c_str
());
cmSystemTools
::
ReplaceString
(
line
,
"CM_OPTIMIZED_LIBRARIES"
,
libOptimizedOptions
.
c_str
());
cmSystemTools
::
ReplaceString
(
line
,
"CM_MULTILINE_LIBRARIES_FOR_DEBUG"
,
libMultiLineOptionsForDebug
.
c_str
());
cmSystemTools
::
ReplaceString
(
line
,
"CM_MULTILINE_LIBRARIES"
,
...
...
@@ -1130,32 +1101,15 @@ void cmLocalVisualStudio6Generator
// because LIBRARY_OUTPUT_PATH and EXECUTABLE_OUTPUT_PATH
// are already quoted in the template file,
// we need to remove the quotes here, we still need
// to convert to output path for unix to win32 conversion
// to convert to output path for unix to win32 conversion
cmSystemTools
::
ReplaceString
(
line
,
"LIBRARY_OUTPUT_PATH"
,
removeQuotes
(
this
->
ConvertToOptionallyRelativeOutputPath
(
libPath
.
c_str
())).
c_str
());
cmSystemTools
::
ReplaceString
(
line
,
"EXECUTABLE_OUTPUT_PATH"
,
removeQuotes
(
this
->
ConvertToOptionallyRelativeOutputPath
(
exePath
.
c_str
())).
c_str
());
if
(
!
m_Makefile
->
GetDefinition
(
"EXECUTABLE_OUTPUT_PATH_OVERRIDE"
)
||
exePath
==
""
)
{
cmSystemTools
::
ReplaceString
(
line
,
"EXECUTABLE_OUTPUT_PATH"
,
removeQuotes
(
this
->
ConvertToOptionallyRelativeOutputPath
(
exePath
.
c_str
())).
c_str
());
}
else
{
cmSystemTools
::
ReplaceString
(
line
,
"EXECUTABLE_OUTPUT_PATHRelease"
,
removeQuotes
(
this
->
ConvertToOptionallyRelativeOutputPath
(
exePath
.
c_str
())).
c_str
());
cmSystemTools
::
ReplaceString
(
line
,
"EXECUTABLE_OUTPUT_PATHDebug"
,
removeQuotes
(
this
->
ConvertToOptionallyRelativeOutputPath
(
exePath
.
c_str
())).
c_str
());
cmSystemTools
::
ReplaceString
(
line
,
"EXECUTABLE_OUTPUT_PATHMinSizeRel"
,
removeQuotes
(
this
->
ConvertToOptionallyRelativeOutputPath
(
exePath
.
c_str
())).
c_str
());
cmSystemTools
::
ReplaceString
(
line
,
"EXECUTABLE_OUTPUT_PATHRelWithDebInfo"
,
removeQuotes
(
this
->
ConvertToOptionallyRelativeOutputPath
(
exePath
.
c_str
())).
c_str
());
}
cmSystemTools
::
ReplaceString
(
line
,
"EXTRA_DEFINES"
,
m_Makefile
->
GetDefineFlags
());
...
...
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