You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Probably this has nothing todo with cygwin, but with different CMake behaviour. I'm not 100% sure. The library should probably not go into the RUNTIME destination.
Quote from the cmake doc:
For DLL platforms the DLL part of a shared library is treated as a RUNTIME target and the corresponding import library is treated as an ARCHIVE target. All Windows-based systems including Cygwin are DLL platforms. The ARCHIVE, LIBRARY, RUNTIME, and FRAMEWORK arguments change the type of target to which the subsequent properties apply. If none is given the installation properties apply to all target types. If only one is given then only targets of that type will be installed (which can be used to install just a DLL or just an import library).
I will close this issue, as I have tried to fix it in commit 68b0f3b and this is a duplicate of a newer bug #506 (as we can discus further there). Thanks!
My environment, Win7 and Cygwin,
I tried to build latest version on Cygwin, and it reports below error,
I searched the web and found below message is useful,
http://stackoverflow.com/questions/14990343/cmake-error-targets-given-no-library-destination-for-shared-library-target/37729574#37729574
I made a fix and it works, the fix is as below,
But, I have no idea about "MSYS2" and "MINGW32" cases, as I have no environment to verify it, also, I have no knowledge about the CMake.
The fix needs to be refined, there should exists better way.
The text was updated successfully, but these errors were encountered: