bkryza / clang-uml

Customizable automatic UML diagram generator for C++ based on Clang.
Apache License 2.0
610 stars 44 forks source link

Library Unable to Find yaml-cpp Correctly on Windows (MSVC) #255

Closed DeveloperPaul123 closed 8 months ago

DeveloperPaul123 commented 8 months ago

I've been following the build instructions here https://github.com/bkryza/clang-uml/blob/master/docs/installation.md#windows-1 for windows and it seems that the latest release (0.5.1) doesn't seem to find yaml-cpp correctly.

I had to add the following line to get things working with yaml again.

Lines 109 - 112 of the root CMakeLists.txt

elseif(MSVC)
    find_package(yaml-cpp REQUIRED)
    set(YAML_CPP_LIBRARIES "yaml-cpp")
else()

Otherwise, it seems the include directory for yaml is never set in the case of MSVC builds.

bkryza commented 8 months ago

@DeveloperPaul123 Ok, thanks for the info. It did build for me on Windows on my setup, but probably I need to reproduce the steps from scratch, I might have cached some cmake properties already...

bkryza commented 8 months ago

@DeveloperPaul123 This is now fixed in master.