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

Update cmake files #114

Merged
merged 2 commits into from
May 3, 2020
Merged

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.

@@ -131,21 +131,29 @@ set(CMAKE_Fortran_FLAGS )

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?

${FSOURCES})

target_link_libraries(${SLYCOT_MODULE}
${LAPACK_LIBRARIES})

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