-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
help: add redis++ lib to app, 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: HIREDIS_STATIC_LIB #63
Comments
redis-plus-plus depends on hiredis, and you need to install hiredis first. It seems that you didn't install hiredis or installed hiredis at a user-defined path, and cmake cannot locate it. If you already installed hiredis at a user-defined path, you can use the
Please check this section for detail. If you still have any problem with redis-plus-plus, feel free to let me know :) Regards |
D:\project-vs\framework\test>cmake -DCMAKE_PREFIX_PATH=D:\project-vs\vcpkg\vcpkg\packages\hiredis_x64-windows -- Building for: Visual Studio 16 2019
Add the installation prefix of "Drogon" to CMAKE_PREFIX_PATH or set |
You need to specify the path to CMakeLists.txt file of redis-plus-plus:
Regards |
I hava already add the path to CMacklist.txt like this below: but, cmake error here too: |
If you set However, if you set this variable by modifying CMakeLists.txt, you should modify 2 CMakeLists.txt files. It seems that you only set Regards |
I changed the CMakeLists.txt in test dir, and it works well hiredis dependencyfind_path(HIREDIS_HEADER hiredis) find_library(HIREDIS_LIB hiredis) redis++ dependencytarget_include_directories(${PROJECT_NAME} PUBLIC ../src) solaris socket dependencyIF (CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS)" ) find_package(Threads REQUIRED) #target_link_libraries(${PROJECT_NAME} ${REDIS_PLUS_PLUS_LIB} ${CMAKE_THREAD_LIBS_INIT}) |
add redis++ lib to app, 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: HIREDIS_STATIC_LIB
The text was updated successfully, but these errors were encountered: