jgaa / restc-cpp

Modern C++ REST Client library
MIT License
603 stars 95 forks source link

Wrong link order in CMakeLists.txt #139

Closed independent9100 closed 1 year ago

independent9100 commented 1 year ago

It seems that the link order in CMakeLists.txt is wrong. If libA depends on libB, libB should be linked after libA. The proper link order should be Boost->OpenSSL->ZLIB->Threads instead of ZLIB->OpenSSL->Threads->Boost. Also, the find_package call order for Boost should be ->coroutine->context-> instead of ->context->coroutine->. Otherwise, you end up with undefined references on Linux machines when using static libraries.