File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,8 @@ install(TARGETS ${_trgt}
125125)
126126
127127python_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)
128130target_include_directories (_ufuncs PRIVATE "mkl_umath/src" ${Python_NumPy_INCLUDE_DIRS} ${MKL_INCLUDE_DIR} )
129131target_compile_definitions (_ufuncs PUBLIC NPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION)
130132target_link_options (_ufuncs PRIVATE ${_linker_options} )
@@ -133,7 +135,8 @@ set_target_properties(_ufuncs PROPERTIES C_STANDARD 99)
133135if (UNIX )
134136 set_target_properties (_ufuncs PROPERTIES INSTALL_RPATH "$ORIGIN/../..;$ORIGIN/../../..;$ORIGIN" )
135137endif ()
136- install (TARGETS _ufuncs LIBRARY DESTINATION mkl_umath)
138+ install (TARGETS ${_trgt} DESTINATION mkl_umath)
139+ install (TARGETS _ufuncs DESTINATION mkl_umath)
137140
138141add_cython_target(_patch "mkl_umath/src/_patch.pyx" C OUTPUT_VAR _generated_src)
139142Python_add_library(_patch MODULE WITH_SOABI ${_generated_src} )
You can’t perform that action at this time.
0 commit comments