Fix UUID not found compilation error on openeuler#2513
Open
wwstory wants to merge 1 commit intodrogonframework:masterfrom
Open
Fix UUID not found compilation error on openeuler#2513wwstory wants to merge 1 commit intodrogonframework:masterfrom
wwstory wants to merge 1 commit intodrogonframework:masterfrom
Conversation
Member
|
@wwstory Thanks for your patch, but changes to Changelog.md are unnecessary, please rebase to the latest version. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe the bug
CMake fails to find UUID library when building drogon on openEuler 22.03, resulting in compilation error "Could not find UUID". The UUID library (
libuuid-devel) is already installed on the system, but CMake still cannot locate it during configuration.To Reproduce
Steps to reproduce the behavior:
docker run --name euler22 -it openeuler/openeuler:22.03-lts bashsudo yum install libuuid-develrpm -qa | grep uuidshows libuuid-devel is installedmkdir build && cd buildcmake ..Expected behavior
cmake should successfully find the installed UUID library and complete configuration without errors.
Screenshots

Error output
CMake Error at /data/chengzi/jingjing/third_party/drogon/cmake_modules/FindUUID.cmake:98 (message):
Could not find UUID
Call Stack (most recent call first):
/data/chengzi/jingjing/third_party/drogon/CMakeLists.txt:224 (find_package)