Missing yaml-cppd.dll after upgrade to yaml-cpp 0.7
kyllingstad opened this issue · comments
Building, installing and running the Debug
version of cosim.exe
from the dist
folder now causes Windows to complain that yaml-cppd.dll
is missing.
Apparently, the yaml-cpp package has added a "d" suffix to the DLL filename when build_type=Debug
, and we're not importing that file to dist/
– only yaml-cpp.dll
. The problem was probably introduced with the recent upgrade of libcosim's yaml-cpp dependency to 0.7 (open-simulation-platform/libcosim#705).
I'm not sure what is the best way to fix it within the current conanfile.txt
. Is there any way to conditionalise on the build type in the [imports]
section, or do we have to switch to conanfile.py
?
Workarounds: Copy the file from the Conan package directory to dist
manually, change the DLL filename in conanfile.txt
manually, or compile in Release
mode.
Use wildcard?
bin, yaml-cpp*.dll -> ./dist/bin