mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
MSVC: fixes for compatibility with latest Vcpkg packages
This commit is contained in:
@ -180,7 +180,7 @@ void foreach_neighbour(CCallback * cbp, const int3 & pos, std::function<void(CCa
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CDistanceSorter::operator()(const CGObjectInstance * lhs, const CGObjectInstance * rhs)
|
bool CDistanceSorter::operator()(const CGObjectInstance * lhs, const CGObjectInstance * rhs) const
|
||||||
{
|
{
|
||||||
const CGPathNode * ln = ai->myCb->getPathsInfo(hero)->getPathInfo(lhs->visitablePos());
|
const CGPathNode * ln = ai->myCb->getPathsInfo(hero)->getPathInfo(lhs->visitablePos());
|
||||||
const CGPathNode * rn = ai->myCb->getPathsInfo(hero)->getPathInfo(rhs->visitablePos());
|
const CGPathNode * rn = ai->myCb->getPathsInfo(hero)->getPathInfo(rhs->visitablePos());
|
||||||
|
@ -186,5 +186,5 @@ public:
|
|||||||
: hero(hero)
|
: hero(hero)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
bool operator()(const CGObjectInstance * lhs, const CGObjectInstance * rhs);
|
bool operator()(const CGObjectInstance * lhs, const CGObjectInstance * rhs) const;
|
||||||
};
|
};
|
@ -154,6 +154,9 @@ if(WIN32)
|
|||||||
# Reported to Microsoft here:
|
# Reported to Microsoft here:
|
||||||
# https://developercommunity.visualstudio.com/content/problem/224597/linker-failing-because-of-multiple-definitions-of.html
|
# https://developercommunity.visualstudio.com/content/problem/224597/linker-failing-because-of-multiple-definitions-of.html
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /FORCE:MULTIPLE")
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /FORCE:MULTIPLE")
|
||||||
|
|
||||||
|
# Required at least for compatibility with Boost 1.68 on Vcpkg
|
||||||
|
set(SYSTEM_LIBS ${SYSTEM_LIBS} bcrypt)
|
||||||
endif(MSVC)
|
endif(MSVC)
|
||||||
|
|
||||||
if(MINGW)
|
if(MINGW)
|
||||||
|
Reference in New Issue
Block a user