ilammy / msvc-dev-cmd

GitHub Action to setup Developer Command Prompt for Microsoft Visual C++
MIT License
345 stars 48 forks source link

Windows, Error cmake flags #86

Open Veha0001 opened 3 days ago

Veha0001 commented 3 days ago

Command:

cmake -G Ninja -S .  -B build \
-DCMAKE_C_FLAGS="/MP"  \
-DCMAKE_CXX_FLAGS="/MP" \ 
.....

Error output:

c1xx: fatal error C1083: Cannot open source file: 'C:/Program': No such file or directory
    MP
    c1xx: fatal error C1083: Cannot open source file: 'Files/Git/MP': No such file or directory
    Generating Code...
    ninja: build stopped: subcommand failed.
pzhlkj6612 commented 2 days ago

Hi! Please provide a minimal reproducible example about your workflow and CMakeLists.txt.