I noticed that plplot build supported optionally appending a suffix to all
the libraries being built via the setting of LIB_TAG option. This seemed to
be exactly what I needed to make it possible to use both debug and release
builds of it at the same time (and looking at the archives, this seems to
be exactly what it was added for). However it simply doesn't work for me:
if I use (many more options omitted but they don't matter)
cmake -G "NMake Makefiles" -DLIB_TAG=_debug_ ..
I get plenty of warnings about inconsistent DLL linkage as well as this
plplot\include\plcore.h(93) : error C2491: 'plsc' : definition of dllimport data not allowed
I have really hard time understanding anything in cmake-generated
makefiles (this system was clearly never meant to be understandable by
human beings...) but it seems that the source of the problem is that in
various flags.make files -Dplplotcxx_debug_d_EXPORTS is used instead of
-Dplplotcxxd_EXPORTS. Unfortunately I don't know what would be the right
way to fix this (and I could be wrong about the problem being due to this
Thanks in advance for any help, it would be really great to have this
P.S. It would be also nice if LIB_TAG setting actually overrode the "d"
suffix added when using "double" or if the user-specified value were
at least appended and not prepended to it as the current schema
results in rather unreadable names like "plplotdd.dll" if you just
naively use LIB_TAG="d" for the debug build as I originally did.