Skip to content

Modules: CMAKE_*_COMPILER convert path to cmake path

scivision requested to merge scivision/cmake:win-path into master

Fixes #25456 (closed)

Before this, CMake configure halted as the slashes were interpreted as invalid escape characters.

Now this works (Intel oneAPI):

cmake -Bbuild -DCMAKE_C_COMPILER="%CMPLR_ROOT%\bin\icx.exe" -DCMAKE_CXX_COMPILER="%CMPLR_ROOT%\bin\icx.exe" -DCMAKE_Fortran_COMPILER="%CMPLR_ROOT%\bin\ifx.exe"
Edited by scivision

Merge request reports