in the build host directories# for libraries and headersin the target directoriesSET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDEIt fails with the following output:
Change Dir: /home/
结构 /some/dir/a b c d /somedir2/somedir4
/some/dir/abcderf/somedir123/somedir22 问题需要递归地删除目录中的尾随空格,在示例"a b c d“的末尾有一个空格,而"somedir22”在其末尾可能有一个需要删除的空格。 有数百个目录,并希望递归地迭代每个目录,以检查该目录是否有尾随空格,如果有,则重命名不带空格的目录。Bash是我目前唯一的选择,因为它是在西部数据NAS上运行的。