diff --git a/cmake-modules/KDEPython.cmake b/cmake-modules/KDEPython.cmake --- a/cmake-modules/KDEPython.cmake +++ b/cmake-modules/KDEPython.cmake @@ -47,7 +47,7 @@ # Setting because it will be displayed later, in compile_python_files set(_message "Byte-compiling ${_bin_py} to ${_bin_pyc}") - string(REPLACE "/" "_" _rule_name "${_basepath}/${_bin_pyc}") + string(REPLACE "/" "_" _rule_name "${_filename}_rule") add_custom_target("${_rule_name}" ALL) get_filename_component(_abs_bin_py ${_bin_py} ABSOLUTE)