open-simulation-platform / cosim-cli

Command-line interface for libcosim
https://open-simulation-platform.github.io/cosim
Mozilla Public License 2.0
10 stars 4 forks source link

Missing yaml-cppd.dll after upgrade to yaml-cpp 0.7 #103

Open kyllingstad opened 2 years ago

kyllingstad commented 2 years ago

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.

markaren commented 2 years ago

Use wildcard?

bin, yaml-cpp*.dll -> ./dist/bin