Skip to content

Commit 893479a

Browse files
Sergey Pluzhnikovsalkinium
andcommitted
Cmake: fix slashes in Windows paths
Co-authored-by: Niklas Hauser <[email protected]>
1 parent 45ae68a commit 893479a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tools/build_script_generator/cmake/resources/CMakeLists.txt.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ include(cmake/ModmConfiguration.cmake)
1414
%% if asm_sources | length
1515
set_source_files_properties(
1616
%% for file in asm_sources | sort
17-
{{ file | relocate }}
17+
{{ file | relocate | modm.posixify }}
1818
%% endfor
1919
PROPERTIES LANGUAGE CXX
2020
)
@@ -24,15 +24,15 @@ set_source_files_properties(
2424
%% if sources | length
2525
add_library(modm OBJECT
2626
%% for file, flags in sources | sort
27-
{{ file | relocate }}
27+
{{ file | relocate | modm.posixify }}
2828
%% endfor
2929
)
3030

3131
%% endif
3232

3333
%% if per_file_attr | length
3434
%% for section in per_file_attr | sort
35-
{{ section }}
35+
{{ section | modm.posixify }}
3636
%% endfor
3737

3838
%% endif
@@ -46,7 +46,7 @@ modm_target_config_create(modm modm_arch_options modm_options modm_warnings)
4646
%% if include_paths | length
4747
target_include_directories(modm SYSTEM PUBLIC
4848
%% for path in include_paths | sort
49-
{{ path | relocate }}
49+
{{ path | relocate | modm.posixify }}
5050
%% endfor
5151
)
5252

tools/build_script_generator/cmake/resources/ModmConfiguration.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function(modm_target_config_create target target_arch target_options target_warn
9999
%% macro generate_flags_for_profile(name, profile)
100100
set({{ name | upper }}{{ "_" ~ (profile | upper) if profile | length else "" }}
101101
%% for flag in flags[name][profile] | sort
102-
{{ flag | flags_format }}
102+
{{ flag | flags_format | modm.posixify }}
103103
%% endfor
104104
)
105105
%% endmacro

0 commit comments

Comments
 (0)