BYVoid / OpenCC

Conversion between Traditional and Simplified Chinese
https://opencc.byvoid.com/
Apache License 2.0
8.48k stars 980 forks source link

修复此项目作为子其他cmake项目的子项目时,导致install失败的问题 #723

Closed dnasdw closed 1 year ago

dnasdw commented 2 years 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。