Open k0ekk0ek opened 3 years ago
For some reason the .lib
is also called cunit.dll.lib
, which seems odd?
I guess differences come from that bincrafters cunit recipe relied on a custom unofficial CMakeLists, while CCI cunit recipe relies on official upstream build files (autotools).
shared option default value of recipes in CCI is always False (there are just few exceptions).
The name of the import lib with Visual Studio comes from autotools, we may want to rename this file since several build system (qmake I guess) may not understand an import lib with .dll.lib extension for Visual Studio.
If static is the default policy that's fine. I'd be in favor of renaming the files though. The static version does name the file cunit.lib
and CMake Find modules are also having trouble finding the file. Usually CMake will look for <library prefix>library<library suffix>
, where on Linux that becomes <lib>library<.so>
and on Windows it becomes library<.dll>
. Probably best to make the names cunit.dll
and cunit.lib
respectively.
dll name doesn't matter for CMake, it's not used at link time (and renaming the dll after it was created might have side effects at runtime), but I agree that import lib should be renamed.
The IMPORTED_LOCATION is normally the path of the .dll
. Renaming the file makes it easier for find modules so they don't have to account for the -1
. At least, that's what I just added :slightly_smiling_face:
Hi! I've recently switched from the Bincrafters recipe to the one in ConanCenter. It caused some issues for me, I'm not sure if the changes are intentional, but other user maybe impacted as well(?)
cunit-1.dll
instead ofcunit.dll
. Is there a reasoning behind the change?Thanks.