[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Build error when using WITH_GCRYPT=ON


Hi Vic,

This is a bug of cmake I already experienced. My workaround is to delete
the CMakeCache.txt file in the build directory when you're going to
change the compilation flags.

Aris

Vic Lee a écrit :
> Hi,
> 
> I have both openssl and gcrypt and I want to compile libssh with gcrypt,
> so I add this option.
> 
> $ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug
> -DWITH_GCRYPT=ON ..
> 
> When I "make" a lot of compilation error pop up from file dh.c. I found
> out that in config.h, both HAVE_LIBCRYPTO and HAVE_LIBGCRYPT were
> defined to 1. I manually comment "#define HAVE_LIBCRYPTO 1" and it built
> fine.
> 
> I am not familiar with cmake system, please help to check how to fix it?
> 
> Thanks,
> 
> Vic
> 
> 
> 


Follow-Ups:
Re: Build error when using WITH_GCRYPT=ONVic Lee <llyzs@xxxxxxx>
References:
Build error when using WITH_GCRYPT=ONVic Lee <llyzs@xxxxxxx>
Archive administrator: postmaster@lists.cynapses.org