pantoniou / libfyaml

Fully feature complete YAML parser and emitter, supporting the latest YAML spec and passing the full YAML testsuite.
MIT License
241 stars 74 forks source link

CMakeLists.txt: Fix for add_subdirectory #37

Closed lrittel closed 3 years ago

lrittel commented 3 years ago

Replaced CMAKE_{SOURCE,BINARY}_DIRECTORY with CMAKE_CURRENT_{SOURCE,BINARY}_DIRECTORY. The change does not affect normal builds because both variable pairs refer to the same paths, but fixes builds, when libfyaml is built in a subdirectory (using cmake's add_subdirectory).