aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/vsprojects/vcxproj.filters_defs.include
diff options
context:
space:
mode:
Diffstat (limited to 'templates/vsprojects/vcxproj.filters_defs.include')
-rw-r--r--templates/vsprojects/vcxproj.filters_defs.include4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/vsprojects/vcxproj.filters_defs.include b/templates/vsprojects/vcxproj.filters_defs.include
index d1ebb56709..7e2fbac147 100644
--- a/templates/vsprojects/vcxproj.filters_defs.include
+++ b/templates/vsprojects/vcxproj.filters_defs.include
@@ -5,7 +5,7 @@
def calc_to_filter(path):
return '\\'.join(path.split('/')[:-1])
%>\
-<%def name="get_repo_root(proj)">${'..\..\..' + ('\..' if proj.vs_proj_dir != '.' else '')}</%def>\
+<%def name="get_repo_root(proj)">${'$(SolutionDir)\..'}</%def>\
<%def name="to_windows_path(path)">${path.replace('/','\\')}</%def>\
<%def name="to_filter(path)">${calc_to_filter(path)}</%def>\
<%def name="filter_to_guid(proj, filter)">${re.sub('(........)(....)(....)(....)', r'\1-\2-\3-\4-', hashlib.md5(''.join([filter, proj])).hexdigest())}</%def>\
@@ -62,4 +62,4 @@
</Project>
% endif
% endfor
-</%def>\ \ No newline at end of file
+</%def>\