Skip to content

Commit fc653df

Browse files
committed
Fix slashes in BMI path for MSVC builds
Note that this is still broken when using -G Ninja
1 parent d42a068 commit fc653df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ endfunction()
2727
# DEPRECATED! Should be merged into add_module_library.
2828
function(enable_module target)
2929
if (MSVC)
30-
set(BMI ${CMAKE_CURRENT_BINARY_DIR}/${target}.ifc)
30+
file(TO_NATIVE_PATH "${CMAKE_CURRENT_BINARY_DIR}/${target}.ifc" BMI)
3131
target_compile_options(${target}
3232
PRIVATE /interface /ifcOutput ${BMI}
3333
INTERFACE /reference fmt=${BMI})

0 commit comments

Comments
 (0)