diff --git a/bindings/python/src/torrent_handle.cpp b/bindings/python/src/torrent_handle.cpp index 41247f29f2..56801c5455 100644 --- a/bindings/python/src/torrent_handle.cpp +++ b/bindings/python/src/torrent_handle.cpp @@ -177,12 +177,12 @@ list file_priorities(torrent_handle& handle) return ret; } -download_priority_t file_prioritity0(torrent_handle& h, file_index_t index) +download_priority_t file_priority0(torrent_handle& h, file_index_t index) { return h.file_priority(index); } -void file_prioritity1(torrent_handle& h, file_index_t index, download_priority_t prio) +void file_priority1(torrent_handle& h, file_index_t index, download_priority_t prio) { return h.file_priority(index, prio); } @@ -532,8 +532,8 @@ void bind_torrent_handle() .def("get_piece_priorities", &piece_priorities) .def("prioritize_files", &prioritize_files) .def("get_file_priorities", &file_priorities) - .def("file_priority", &file_prioritity0) - .def("file_priority", &file_prioritity1) + .def("file_priority", &file_priority0) + .def("file_priority", &file_priority1) .def("file_status", _(file_status0)) .def("save_resume_data", _(&torrent_handle::save_resume_data), arg("flags") = 0) .def("need_save_resume_data", _(need_save_resume_data0)) diff --git a/cmake/Modules/GeneratePkgConfig.cmake b/cmake/Modules/GeneratePkgConfig.cmake index fa52349642..49a14a6cb1 100644 --- a/cmake/Modules/GeneratePkgConfig.cmake +++ b/cmake/Modules/GeneratePkgConfig.cmake @@ -9,10 +9,10 @@ set(_GeneratePkGConfigDir "${CMAKE_CURRENT_LIST_DIR}/GeneratePkgConfig") include(GNUInstallDirs) -function(_get_target_property_merging_configs _var_name _target_name _propert_name) - get_property(prop_set TARGET ${_target_name} PROPERTY ${_propert_name} SET) +function(_get_target_property_merging_configs _var_name _target_name _property_name) + get_property(prop_set TARGET ${_target_name} PROPERTY ${_property_name} SET) if (prop_set) - get_property(vals TARGET ${_target_name} PROPERTY ${_propert_name}) + get_property(vals TARGET ${_target_name} PROPERTY ${_property_name}) else() if (CMAKE_BUILD_TYPE) list(APPEND configs ${CMAKE_BUILD_TYPE}) @@ -27,9 +27,9 @@ function(_get_target_property_merging_configs _var_name _target_name _propert_na else() set(target_cfg "${UPPERCFG}") endif() - get_property(prop_set TARGET ${_target_name} PROPERTY ${_propert_name}_${target_cfg} SET) + get_property(prop_set TARGET ${_target_name} PROPERTY ${_property_name}_${target_cfg} SET) if (prop_set) - get_property(val_for_cfg TARGET ${_target_name} PROPERTY ${_propert_name}_${target_cfg}) + get_property(val_for_cfg TARGET ${_target_name} PROPERTY ${_property_name}_${target_cfg}) list(APPEND vals "$<$:${val_for_cfg}>") break() endif() @@ -38,7 +38,7 @@ function(_get_target_property_merging_configs _var_name _target_name _propert_na get_property(imported_cfgs TARGET ${_target_name} PROPERTY IMPORTED_CONFIGURATIONS) # CMake docs say we can use any of the imported configs list(GET imported_cfgs 0 imported_config) - get_property(vals TARGET ${_target_name} PROPERTY ${_propert_name}_${imported_config}) + get_property(vals TARGET ${_target_name} PROPERTY ${_property_name}_${imported_config}) # remove config generator expression. Only in this case! Notice we use such expression # ourselves in the loop above string(REPLACE "$<$:" "$<1:" vals "${vals}")