Open krs0 opened 1 year ago
@krs0 msvc or mingw? Please, add answer into bug description.
and what does "not working" exactly mean? :)
@IvanSavenko sugested to add to \source\CMakeLists.txt
if(MSVC)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDLL")
But this is not the complete solution. The following error occurs now:
is this file present in the vcpkg archive?
@kambala-decapitator ...\vcpkg\installed\x64-windows\lib\tbb12.lib
@kambala-decapitator
MSVC Debug libraries are useless for something more complex than helloworld
krs is using option
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDLL")
Which should link to "release" libraries in every configuration.
This should allow reasonable performance of Debug configuration of vcmi and still be usable for debugging since vcmi binaries are not optimized.
then vcpkg must not use debug directory to search for libraries
You can put the lib manually there to output directory once. Some vcpkg just can not understand correctly these combined targets like RelWithDebInfo because it either have check BuildType=Release or BuildType=Debug so using them there is a bit dangerous
Quick fix: Replace the library manually in source\bin\Debug
folder.
Alongside
DebugWithRelInfo
fix alsoDebug
configuration for MSVCAdditional context Some things are just not debuggable with
DebugWithRelInfo