[CMake] Clang on Cygwin don't build 'dll.a'

Thomas Nilsson thomas at junovagen.se
Wed Mar 23 02:42:05 EDT 2016


I'm trying to build a CMake project using clang instead of gcc. The 
project is cross-platform and builds cleanly on Cygwin with gcc. With 
Clang it says:

[ 33%] Built target X
make[4]: *** No rule to make target 'X.dll.a', needed by 'X.exe'.  Stop.
CMakeFiles/Makefile2:1140: recipe for target 'tools/CMakeFiles/X/all' failed

I don't know how to fix this, but I'm not completely sure that it's not 
my project that instructs CMake to do this (how would I know?).

If not, is there a way to make CMake link directly against the .dll?

/Thomas
Cygwin64 on Windows 10 with CMake 3.3.2


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160323/37f5e89b/attachment.html>


More information about the CMake mailing list