Skip to content

Commit 28d9bf8

Browse files
committed
debug: CMAKE
1 parent 106f2d7 commit 28d9bf8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ install(TARGETS ${_trgt}
125125
)
126126

127127
python_add_library(_ufuncs MODULE WITH_SOABI "mkl_umath/src/ufuncsmodule.c" "mkl_umath/src/__umath_generated.c")
128+
# Ensure output name is _ufuncs (default ok) and install both targets
129+
set_target_properties(_ufuncs PROPERTIES C_STANDARD 99)
128130
target_include_directories(_ufuncs PRIVATE "mkl_umath/src" ${Python_NumPy_INCLUDE_DIRS} ${MKL_INCLUDE_DIR})
129131
target_compile_definitions(_ufuncs PUBLIC NPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION)
130132
target_link_options(_ufuncs PRIVATE ${_linker_options})
@@ -133,7 +135,8 @@ set_target_properties(_ufuncs PROPERTIES C_STANDARD 99)
133135
if (UNIX)
134136
set_target_properties(_ufuncs PROPERTIES INSTALL_RPATH "$ORIGIN/../..;$ORIGIN/../../..;$ORIGIN")
135137
endif()
136-
install(TARGETS _ufuncs LIBRARY DESTINATION mkl_umath)
138+
install(TARGETS ${_trgt} DESTINATION mkl_umath)
139+
install(TARGETS _ufuncs DESTINATION mkl_umath)
137140

138141
add_cython_target(_patch "mkl_umath/src/_patch.pyx" C OUTPUT_VAR _generated_src)
139142
Python_add_library(_patch MODULE WITH_SOABI ${_generated_src})

0 commit comments

Comments
 (0)