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).
Replaced
CMAKE_{SOURCE,BINARY}_DIRECTORY
withCMAKE_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).