Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix 一下 CMakeLists.txt,提升一下可移植性 #65

Open
xinchengxx opened this issue Aug 8, 2024 · 0 comments
Open

fix 一下 CMakeLists.txt,提升一下可移植性 #65

xinchengxx opened this issue Aug 8, 2024 · 0 comments

Comments

@xinchengxx
Copy link

xinchengxx commented Aug 8, 2024

  1. 首先 CMakeLists.txt 里面缺少 SPDLOG_VERSION 这个参数的定义 link,这会导致 USE_CUSTOM 这个参数 = false 的时候 spdlog 这个库在链接的时候地址不对,根本没法编译出库文件来.
  2. CMakeLists 里用的 CMAKE_SOURCE_DIR link , 因此如果将这个项目作为子项目的时候,内层的的路径是找的不对的, 推荐使用 CMAKE_CURRENT_SOURCE_DIR 或者 PROJECT_SOURCE_DIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant