seznam / elasticlient

C++ Elasticsearch client library
https://seznam.github.io/elasticlient/
MIT License
132 stars 67 forks source link

cmake error #3

Closed Denny007 closed 6 years ago

Denny007 commented 6 years ago

Hi, when I run cmake .. in build, it appear error like this: CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: MHD_INCLUDE_DIR (ADVANCED) used as include directory in directory /data/denny/github/elasticlient/external/httpmockserver/src used as include directory in directory /data/denny/github/elasticlient/external/httpmockserver/src used as include directory in directory /data/denny/github/elasticlient/external/httpmockserver/src used as include directory in directory /data/denny/github/elasticlient/external/httpmockserver/src used as include directory in directory /data/denny/github/elasticlient/external/httpmockserver/src used as include directory in directory /data/denny/github/elasticlient/external/httpmockserver/src used as include directory in directory /data/denny/github/elasticlient/external/httpmockserver/src used as include directory in directory /data/denny/github/elasticlient/external/httpmockserver/src used as include directory in directory /data/denny/github/elasticlient/external/httpmockserver/test used as include directory in directory /data/denny/github/elasticlient/external/httpmockserver/test used as include directory in directory /data/denny/github/elasticlient/external/httpmockserver/test used as include directory in directory /data/denny/github/elasticlient/external/httpmockserver/test used as include directory in directory /data/denny/github/elasticlient/external/httpmockserver/test used as include directory in directory /data/denny/github/elasticlient/external/httpmockserver/test used as include directory in directory /data/denny/github/elasticlient/external/httpmockserver/test used as include directory in directory /data/denny/github/elasticlient/external/httpmockserver/test MHD_LIBRARY (ADVANCED) linked by target "test-server" in directory /data/denny/github/elasticlient/external/httpmockserver/test linked by target "test-server" in directory /data/denny/github/elasticlient/external/httpmockserver/test linked by target "tests-elasticlient" in directory /data/denny/github/elasticlient/test

Could you tell me how to fix it, thank you

che0 commented 6 years ago

I guess the issue is that you're building it with teststs, which require httpmockserver, which in turn requires libmicrohttpd which you probably don't have.