Skip to content

Conversation

@repagh
Copy link
Member

@repagh repagh commented May 2, 2020

Small fixes to the CMakeLists.txt files.
Now prints out the numpy header path.

Copy link
Collaborator

@roryyorke roryyorke left a comment

Choose a reason for hiding this comment

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

Thanks for this. I find working on the build system can be a bit soul-destroying.

add_custom_target(wrapper ALL DEPENDS ${FSOURCES})
add_custom_command(
OUTPUT SLYCOTmodule.c _wrappermodule.c _wrapper-f2pywrappers.f
OUTPUT _wrappermodule.c _wrapper-f2pywrappers.f
Copy link
Collaborator

Choose a reason for hiding this comment

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

What happened to SLYCOTmodule.c?

SLYCOTmodule.c _wrappermodule.c _wrapper-f2pywrappers.f
"${PYTHON_SITE}/numpy/f2py/src/fortranobject.c"
_wrappermodule.c
${PYTHON_SITE}/numpy/f2py/src/fortranobject.c
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just to check: CMake and scikit-build don't find this file for us, or arrange for an "f2py" target that takes care of this?


target_include_directories(
${SLYCOT_MODULE} PUBLIC
${PYTHON_SITE}/numpy/core/include
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we use using ${NumPy_INCLUDE_DIR} here?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm also not sure if these should be PUBLIC dependencies of the module.

@roryyorke roryyorke merged commit 1bf49c1 into python-control:master May 3, 2020
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