pokowaka/jwt-cpp

CMakeList error for windows compile

578141611 opened this issue · 2 comments

SET(OPENSSL_LIBRARIES "libcrypto libssl") changes to SET(OPENSSL_LIBRARIES libcrypto libssl) will fix this problem

Let's fix it!

Another problem here is that when OpenSSL is built in debug mode the library names are libcryptod and libssld. Because of this linking with the jwt-cpp library fails when using a debug version of OpenSSL.
To avoid this it is better not to hardcode the library names but use the findOpenSSL.cmake module that is distributed with cmake. Will handle this further via issue #34.