BUG: Check for whether to use CMAKE_EXE_LINKER_FLAGS should look both for EXECUTABLE and WIN32_EXECUTABLE targets.

This commit is contained in:
Brad King 2003-09-24 11:03:14 -04:00
parent da623cd0b4
commit c056415593
1 changed files with 2 additions and 1 deletions

View File

@ -383,7 +383,8 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(std::ostream& fout,
} }
std::string extraLinkOptions; std::string extraLinkOptions;
if(target.GetType() == cmTarget::EXECUTABLE) if((target.GetType() == cmTarget::EXECUTABLE) ||
(target.GetType() == cmTarget::WIN32_EXECUTABLE))
{ {
extraLinkOptions = m_Makefile->GetDefinition("CMAKE_EXE_LINKER_FLAGS"); extraLinkOptions = m_Makefile->GetDefinition("CMAKE_EXE_LINKER_FLAGS");
} }