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

Poco_INCLUDE_DIRS should not be a cached entry #4385

Closed
gengliqi opened this issue Mar 22, 2022 · 0 comments · Fixed by #4384
Closed

Poco_INCLUDE_DIRS should not be a cached entry #4385

gengliqi opened this issue Mar 22, 2022 · 0 comments · Fixed by #4384
Labels
severity/minor type/bug The issue is confirmed as a bug.

Comments

@gengliqi
Copy link
Contributor

gengliqi commented Mar 22, 2022

Bug Report

Poco_INCLUDE_DIRS should not be a cached entry.

if(Poco_INSTALLED)
set(Poco_INCLUDE_DIRS ${Poco_ROOT_DIR}/include/ CACHE PATH "The global include path for Poco")
endif()

Beyond that, the below code relies on the fact that the length of Poco_INCLUDE_DIRS should be equal to or greater than 2.
list(GET Poco_INCLUDE_DIRS 0 Poco_Foundation_INCLUDE_DIR)
list(GET Poco_INCLUDE_DIRS 1 Poco_Util_INCLUDE_DIR)

@gengliqi gengliqi added the type/bug The issue is confirmed as a bug. label Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/minor type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant