Skip to content

Commit

Permalink
Replace forward slashes by backslashes in BMI path for MSVC.
Browse files Browse the repository at this point in the history
Note that this is broken on Ninja
  • Loading branch information
tkhyn committed Feb 6, 2025
1 parent d42a068 commit 9e81e12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ endfunction()
# DEPRECATED! Should be merged into add_module_library.
function(enable_module target)
if (MSVC)
set(BMI ${CMAKE_CURRENT_BINARY_DIR}/${target}.ifc)
string(REPLACE "/" "\\" BIN_DIR ${CMAKE_CURRENT_BINARY_DIR})
set(BMI ${BIN_DIR}\\${target}.ifc)
target_compile_options(${target}
PRIVATE /interface /ifcOutput ${BMI}
INTERFACE /reference fmt=${BMI})
Expand Down

0 comments on commit 9e81e12

Please sign in to comment.