Skip to content
Snippets Groups Projects
Commit e439fcbf authored by Lars Bilke's avatar Lars Bilke Committed by Dmitri Naumov
Browse files

[cmake] Fix parsing of native win paths in arguments.

parent abc42b81
No related branches found
No related tags found
No related merge requests found
...@@ -29,8 +29,9 @@ foreach(cache_var ${CACHE_VARS}) ...@@ -29,8 +29,9 @@ foreach(cache_var ${CACHE_VARS})
else() else()
set(CACHE_VAR_TYPE :${CACHE_VAR_TYPE}) set(CACHE_VAR_TYPE :${CACHE_VAR_TYPE})
endif() endif()
file(TO_CMAKE_PATH "${${cache_var}}" cache_value)
set(CMAKE_ARGS set(CMAKE_ARGS
"${CMAKE_ARGS} -D${cache_var}${CACHE_VAR_TYPE}=\"${${cache_var}}\"" "${CMAKE_ARGS} -D${cache_var}${CACHE_VAR_TYPE}=\"${cache_value}\""
) )
endif() endif()
endforeach() endforeach()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment