Gao Mingfei has uploaded this change for review. ( https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/511828 ) Change subject: Replace ${CMAKE_SOURCE_DIR} into ${CMAKE_CURRENT_SOURCE_DIR}. ...................................................................... Replace ${CMAKE_SOURCE_DIR} into ${CMAKE_CURRENT_SOURCE_DIR}. If we want to integrate nfs-ganesha into a larger CMake project, we usually use "add_subdirectory(nfs-ganesha/src)" in the top level CMakeLists.txt to achive this goal. But the CMakeLists.txt in nfs-ganesha use predefined variable ${CMAKE_SOURCE_DIR}, this variable always point to the top level CMakeLists.txt file path, so the cmake can not work in this case. CMake provides another variable ${CMAKE_CURRENT_SOURCE_DIR}, which stands for the current CMakeLists.txt file path. I think we should use this variable instead. Signed-off-by: Gao Mingfei <mingfei.gao@ucloud.cn> Change-Id: Icd142c57ff7421e70d5370cb9382ddc27c9edc28 --- M src/CMakeLists.txt M src/MainNFSD/CMakeLists.txt M src/cmake/modules/GetGitRevisionDescription.cmake M src/cmake/portability_cmake_2.8/FindBISON.cmake 4 files changed, 20 insertions(+), 20 deletions(-) git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/28/511828/1 -- To view, visit https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/511828 To unsubscribe, or for help writing mail filters, visit https://review.gerrithub.io/settings Gerrit-Project: ffilz/nfs-ganesha Gerrit-Branch: next Gerrit-Change-Id: Icd142c57ff7421e70d5370cb9382ddc27c9edc28 Gerrit-Change-Number: 511828 Gerrit-PatchSet: 1 Gerrit-Owner: Gao Mingfei <gaomf@gaomf.cn> Gerrit-MessageType: newchange