grame-cncm / guidolib

Guido project - music score layout engine - music description language
http://guido.grame.fr
Mozilla Public License 2.0
152 stars 34 forks source link

CMake target names are inconsistent #165

Open benthevining opened 1 year ago

benthevining commented 1 year ago

On Mac/Linux, the target names are GUIDOEngine and SGUIDOEngine. On 64-bit Windows, the target names GUIDOEngine64 and SGUIDOEngine64. This is unnecessary complexity.

As a CMake user, I want to be able to do simply:

find_package (guido)

target_link_libraries (myApp PRIVATE guido::guido)

and not have to dig in to the internals of Guido's cmake scripts to figure out how to use your library.

dfober commented 1 year ago

This is avoid name conflicts between the dynamic and static libraries (when both are compiled). I don't know how else to avoid this conflict between dynamic and static .lib. Any suggestion is welcome.

benthevining commented 1 year ago

That's a different issue -- I'm talking about the fact that 64 is appended to both the dynamic and static library target names on 64-bit Windows.