[CMake] Minor problem with cmake-based chicken build on cygwin

Alexander Neundorf a.neundorf-work at gmx.net
Sun Jun 1 17:15:39 EDT 2008


On Saturday 31 May 2008, Nathan Thern wrote:
> Hi all-
> I just built chicken-3.2.0 on cygwin. The build went just fine, but the
> install put the runtime dlls (cygchicken-0.dll and cyguchicken-0.dll) in
> /usr/lib rather than /usr/bin. The installation did not work until I moved
> the dlls to /usr/bin.
>
> A quick inspection of the makefiles revealed that DLLSINPATH is not set
> in Makefile.cygwin (whereas it is in the mingw & msvc makefiles).
>
> The obvious fix is to define DLLSINPATH in the make arguments, but since
> the build is broken unless that is done, it looks like a bug to me. Perhaps
> this is a cmake bug, or a bug in the chicken source?

I know basically nothing about chicken, but usually cmake doesn't generate 
files named "Makefile.cygwin". Where do they come from ?
To install libraries correctly, you have to use 
install(TARGETS <lib1> <lib2> RUNTIME DESTINATION <bindir>
                              ARCHIVE DESTINATION <libbir>
                              LIBRARY DESTINATION <libdir> )

This will put everything in the correct place. Check if this is done in the 
cmake files.

Alex


More information about the CMake mailing list