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

[P4Testgen] Fix accidental system file categorization. #4278

Merged
merged 2 commits into from
Dec 11, 2023

Conversation

fruffy
Copy link
Collaborator

@fruffy fruffy commented Dec 8, 2023

Some files were accidentally classified as system files, although they were local. This causes problems with such as tools as include-fixer.

@fruffy fruffy added the p4tools Topics related to the P4Tools back end label Dec 8, 2023
PUBLIC "${CMAKE_BINARY_DIR}/common"
PUBLIC "${P4C_SOURCE_DIR}"
PUBLIC "${P4C_BINARY_DIR}"
SYSTEM BEFORE PUBLIC ${P4TOOLS_Z3_INCLUDE_DIR}
Copy link
Contributor

Choose a reason for hiding this comment

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

From https://cmake.org/cmake/help/latest/command/target_include_directories.html it seems that the SYSTEM should be actually specified at the beginning, I'm a bit surprised this works. I think it would be best to split the system and non-system libraries to a separate target_include_directories.

@fruffy fruffy merged commit 0f25f9d into main Dec 11, 2023
13 checks passed
@fruffy fruffy deleted the fruffy/fix_system_files branch December 11, 2023 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p4tools Topics related to the P4Tools back end
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants