arun11299 / cpp-jwt

JSON Web Token library for C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some CMake issues

Farrukhqazi opened this issue · comments

While compiling in a statically build library for openssl I was required to add '-ldl' flag in examples\CMakeLists.txt as below

target_link_libraries(simple_ex1 ${OPENSSL_LIBRARIES} -ldl)

not sure if everyone faced the same issue and more specifically is a openssl issue rather jwt.

Thanks for opening the issue.
Did you face the issue only with the examples code ? Or with the test code as well ?

It would be same for test code as well I believe.

However I am unable to build the test code as there seem to be some issue with gtest library as well. I am using v1.5.0 for gtest. the following error appears if I try to build any test code

In file included from /home/satmapai/gtest/include/gtest/gtest.h:57:0,
                 from /mnt/d/PoC/cpp-jwt/tests/test_jwt_decode.cc:2:
/mnt/d/PoC/cpp-jwt/tests/test_jwt_decode.cc: In member function 'virtual void DecodeTest_InvalidFinalDotForNoneAlg_Test::TestBody()':
/home/satmapai/gtest/include/gtest/internal/gtest-internal.h:875:44: error: no matching function for call to 'testing::AssertionResult::AssertionResult(std::error_code&)'
       ::testing::AssertionResult(expression))

Closing it due to inactivity.