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

Python Module Check #215

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

alexk101
Copy link

@alexk101 alexk101 commented Mar 5, 2024

Checks to see if the libclang and jinja2 modules are available to the python interpreter before attempting to install using pip. This allows a user on a system that does not manage python dependencies with pip to manually pre-install these dependencies before building.

Solves #214

Copy link
Contributor

@TheMostDiligent TheMostDiligent left a comment

Choose a reason for hiding this comment

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

@alexk101
Copy link
Author

alexk101 commented Mar 5, 2024

My bad. Forgot how to read. Should be correct now.


execute_process(COMMAND ${LIBCLANG_INSTALL_CMD}
if(NOT LIBCLANG_EXISTS EQUAL "0")
Copy link
Contributor

Choose a reason for hiding this comment

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

This condition may be too liberal as there are multiple other options for false value in CMake.
https://cmake.org/cmake/help/latest/command/if.html#constant
It should just be if(NOT LIBCLANG_EXISTS)

RESULT_VARIABLE JINJA_EXISTS
)

if(NOT JINJA_EXISTS EQUAL "0")
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

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.

3 participants