The CMake code previously expected CMAKE_SOURCE_DIR to point to the root of the libfranka source tree, which is not true when libfranka is added to a project using add_subdirectory().
In the issue #67 I initially suggested using the variable CMAKE_CURRENT_LIST_DIR, but afterwards I decided to use CMAKE_CURRENT_SOURCE_DIR for consistency with existing code in libfranka.
The CMake code previously expected
CMAKE_SOURCE_DIR
to point to the root of the libfranka source tree, which is not true when libfranka is added to a project usingadd_subdirectory()
.This change does not break the workflow described in the libfranka FAQ, the only difference in the behaviour is for cases that didn't work before.
In the issue #67 I initially suggested using the variable
CMAKE_CURRENT_LIST_DIR
, but afterwards I decided to useCMAKE_CURRENT_SOURCE_DIR
for consistency with existing code in libfranka.