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: don‘t mixed use pkgconfig and config.cmake #85

Merged
merged 1 commit into from
Sep 8, 2022

Conversation

wineee
Copy link
Member

@wineee wineee commented Sep 8, 2022

Log: find_package(DtkCore REQUIRED dtkcore) 的用法是不规范的

如果是用 pkg-config 的话是 pkg_search_module(DtkCore REQUIRED dtkcore)

用 find_package 应该是 find_package(Dtk REQUIRED Core Gui Widget) 这种

另外后面用的 DtkCore_INCLUDE_DIRS 也不是 DtkCoreConfig.camke 提供的,它提供的是 DTKCORE_INCLUDE_DIR(现在改成了 DtkCore_INCLUDE_DIR,旧的仍然保留),而且引入时就配置 include_directories 了,不用单独写。

而 DtkCore_INCLUDE_DIRS 正好是 cmake 的 pkg-config 模块设置的(用pkg_search_module才行)

@github-actions
Copy link

github-actions bot commented Sep 8, 2022

All right about License Check!

@github-actions
Copy link

github-actions bot commented Sep 8, 2022

All right about README Check

Log: find_package(DtkCore REQUIRED dtkcore) 的用法是不规范的

如果是用 pkg-config 的话是 pkg_search_module(DtkCore REQUIRED dtkcore)

用 find_package 应该是 find_package(Dtk REQUIRED Core Gui Widget) 这种

另外后面用的 DtkCore_INCLUDE_DIRS 也不是 DtkCoreConfig.camke 提供的,它提供的是 DTKCORE_INCLUDE_DIR(现在改成了 DtkCore_INCLUDE_DIR,旧的仍然保留),而且引入时就配置 include_directories 了,不用单独写。

而 DtkCore_INCLUDE_DIRS 正好是 cmake 的 pkg-config 模块设置的(用pkg_search_module才行)
@github-actions
Copy link

github-actions bot commented Sep 8, 2022

All right about License Check!

@github-actions
Copy link

github-actions bot commented Sep 8, 2022

All right about README Check

Copy link

@lzwind lzwind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/+1

@wineee
Copy link
Member Author

wineee commented Sep 8, 2022

/merge

@deepin-bot deepin-bot bot merged commit 41e8186 into linuxdeepin:master Sep 8, 2022
@wineee wineee deleted the fix branch September 8, 2022 08:24
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

Successfully merging this pull request may close these issues.

None yet

2 participants