Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Make the .pyf signature files a dependency of the wrapper generation.
The goal is to allow faster re-compilation after editing one of the pyf signature files.
  • Loading branch information
rabraker committed Jul 27, 2019
commit 429e1d6229bf8d8c0b9e7faf5d485f9828a040d8
6 changes: 5 additions & 1 deletion slycot/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ set(FSOURCES
src/NF01BV.f src/SB10JD.f src/UE01MD.f)

set(F2PYSOURCE src/_wrapper.pyf)
set(F2PYSOURCE_DEPS
src/analysis.pyf src/math.pyf src/mathematical.pyf
src/transform.pyf src/synthesis.pyf)

configure_file(version.py.in version.py @ONLY)

Expand All @@ -123,7 +126,8 @@ add_custom_command(
OUTPUT SLYCOTmodule.c _wrappermodule.c _wrapper-f2pywrappers.f
COMMAND ${F2PY_EXECUTABLE} -m SLYCOT
${CMAKE_CURRENT_SOURCE_DIR}/${F2PYSOURCE}
)
DEPENDS ${F2PYSOURCE_DEPS} ${F2PYSOURCE}
)

add_library(
${SLYCOT_MODULE} SHARED
Expand Down