Closed dnasdw closed 1 year ago
cmake的官方文档: https://cmake.org/cmake/help/latest/variable/CMAKE_BINARY_DIR.html https://cmake.org/cmake/help/latest/variable/CMAKE_CURRENT_BINARY_DIR.html
这两个变量在顶级项目中是相同的,在子项目中应该用CMAKE_CURRENT_BINARY_DIR。
cmake的官方文档: https://cmake.org/cmake/help/latest/variable/CMAKE_BINARY_DIR.html https://cmake.org/cmake/help/latest/variable/CMAKE_CURRENT_BINARY_DIR.html
这两个变量在顶级项目中是相同的,在子项目中应该用CMAKE_CURRENT_BINARY_DIR。