Merge topic 'fix_incremental_vs2010'
cddcad5
Fix incremental linking for VS2010 with nmake or make.
This commit is contained in:
commit
5bea0917ef
|
@ -212,6 +212,8 @@ SET (CMAKE_EXE_LINKER_FLAGS_INIT
|
||||||
SET( MSVC_INCREMENTAL_YES_FLAG "")
|
SET( MSVC_INCREMENTAL_YES_FLAG "")
|
||||||
IF(NOT MSVC_INCREMENTAL_DEFAULT)
|
IF(NOT MSVC_INCREMENTAL_DEFAULT)
|
||||||
SET( MSVC_INCREMENTAL_YES_FLAG "/INCREMENTAL:YES")
|
SET( MSVC_INCREMENTAL_YES_FLAG "/INCREMENTAL:YES")
|
||||||
|
ELSE()
|
||||||
|
SET( MSVC_INCREMENTAL_YES_FLAG "/INCREMENTAL" )
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
IF (CMAKE_COMPILER_SUPPORTS_PDBTYPE)
|
IF (CMAKE_COMPILER_SUPPORTS_PDBTYPE)
|
||||||
|
|
|
@ -3815,6 +3815,10 @@ int cmake::VisualStudioLink(std::vector<std::string>& args, int type)
|
||||||
{
|
{
|
||||||
hasIncremental = true;
|
hasIncremental = true;
|
||||||
}
|
}
|
||||||
|
if(cmSystemTools::Strucmp(i->c_str(), "/INCREMENTAL") == 0)
|
||||||
|
{
|
||||||
|
hasIncremental = true;
|
||||||
|
}
|
||||||
if(cmSystemTools::Strucmp(i->c_str(), "/MANIFEST:NO") == 0)
|
if(cmSystemTools::Strucmp(i->c_str(), "/MANIFEST:NO") == 0)
|
||||||
{
|
{
|
||||||
hasManifest = false;
|
hasManifest = false;
|
||||||
|
|
Loading…
Reference in New Issue