Skip to content

Conversation

@vvbae
Copy link
Collaborator

@vvbae vvbae commented Feb 1, 2025

No description provided.

endif()

# Find p4c (for JSON generation)
find_program(P4C_EXECUTABLE p4c)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is the wrong way to do this, this is why the current tests fail. You directly access the P4C binary in the script, you shouldn't need to use find_program.

include(test/P4Tests.cmake)
endif()

find_program(RTSMITH_DRIVER p4rtsmith)
Copy link
Collaborator

Choose a reason for hiding this comment

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

We already set this binary with a variable, you just need to use that variable. Do not use find_program

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.

2 participants