Using -DCMAKE_INSTALL_PREFIX with build produces flat include folder & does not include DLL
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- cmake, cpp
- 领域
- build-system
调研方向
首先定位 issue 中所示的 CMake install(TARGETS countly...) 块和 COUNTLY_PUBLIC_HEADERS 定义。使用 CMAKE_INSTALL_PREFIX 和 install 目标执行已配置的构建,然后验证安装后的布局中,bin 下有 countly.dll,include 下有 countly.hpp,并且 include/countly 下有预期的公共头文件。
由索引模型根据 Issue 内容生成。
描述
If you use -DCMAKE_INSTALL_PREFIX=[some folder] when generating the build files, and then use --target install, you get a badly formed output folder.
The DLL is the easiest one to fix.
install(TARGETS countly ARCHIVE DESTINATION lib PUBLIC_HEADER DESTINATION include/countly)
Should be
install(TARGETS countly ARCHIVE DESTINATION lib PUBLIC_HEADER DESTINATION include/countly RUNTIME DESTINATION bin)
This way, there will be a bin folder containing the countly.dll.
There are a few errors with the include setup. First, countly.hpp needs to be removed from COUNTLY_PUBLIC_HEADERS. While we're at it, add countly_configuration.hpp, which is missing!
Next, add this additional install step at the end of the file:
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/countly.hpp DESTINATION include)
This will separately install countly.hpp in the root include folder in the install directory, creating the expected setup.
- 主要语言
- C++
- 星标
- 34
- 派生
- 25
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Countly/countly-sdk-cpp 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 45/100
Countly/countly-sdk-cpp#100 ·
-
难度 3/5 1-2 天 新手友好度 35/100
Countly/countly-sdk-cpp#36 · 4 条评论 ·
-
难度 5/5 一周以上 新手友好度 30/100
Countly/countly-sdk-cpp#35 · 3 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
Countly/countly-sdk-cpp#34 ·
-
No namespace未关闭
难度 2/5 1-3 小时 新手友好度 35/100
Countly/countly-sdk-cpp#33 · 1 个 reaction ·
查看 Countly/countly-sdk-cpp 的全部 Issue
相似的 Issue
-
Mac mini M6 (16 GB): Q2_0 streaming works - measured 11.7->27.2 tok/s + arena fix for sub-32 GB Macs未关闭
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
champion good first issue remake source/qq
难度 2/5 1-3 小时 新手友好度 65/100
metasequoiaime/msime-windows#1025 ·
维护者通常 1 天内回复
-
backlog bug
难度 2/5 1-3 小时 新手友好度 75/100
EchoTools/nevr-runtime#653 ·
维护者通常 1 天内回复
-
`--fail-require-skip` never fires: run_tests.py searches stdout, but the unittest binary writes the skip summary to stderr可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
InfiniTimeOrg/InfiniTime#2492 ·