File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 5151 - python-version : " 3.9"
5252 runs-on : ubuntu-latest
5353 cmake : " 3.20.x"
54+ - python-version : " 3.10"
55+ runs-on : ubuntu-latest
56+ cmake : " 3.15.x"
5457
5558 steps :
5659 - uses : actions/checkout@v4
6770 with :
6871 cmake-version : ${{ matrix.cmake }}
6972
73+ - run : pipx install ninja
74+ if : matrix.cmake == '3.15.x'
75+
7076 - uses : yezz123/setup-uv@v4
7177
7278 - name : Install package
Original file line number Diff line number Diff line change 6464# limitations under the License.
6565#=============================================================================
6666
67+ if (CMAKE_VERSION VERSION_LESS "3.7" )
68+ message (SEND_ERROR "CMake 3.7 required for DEPFILE" )
69+ endif ()
6770
6871function (Cython_compile_pyx)
6972 set (_options )
@@ -116,7 +119,11 @@ function(Cython_compile_pyx)
116119 set (generated_files)
117120
118121 foreach (_source_file IN LISTS _source_files)
119- cmake_path(GET _source_file STEM _name)
122+
123+ # Can use cmake_path for CMake 3.20+
124+ # cmake_path(GET _source_file STEM _name)
125+ get_filename_component (_name "${_source_file} " NAME_WE )
126+
120127 set (generated_file "${CMAKE_CURRENT_BINARY_DIR} /${_name} .${_language_extension} " )
121128 set_source_files_properties (${generated_file} PROPERTIES GENERATED TRUE )
122129
You can’t perform that action at this time.
0 commit comments