frerich / clcache

A compiler cache for MSVC, much like ccache for gcc
Other
325 stars 83 forks source link

Problems with ASM identification, using clcache on CMAKE #368

Open netmonitoring opened 4 years ago

netmonitoring commented 4 years ago

There are problems with ASM identification, using clcache.

project(${PROJECT_NAME} LANGUAGES C CXX ASM VERSION ${PROJECT_VERSION})

-- The ASM compiler identification is unknown -- Found assembler: C:/Python381/Scripts/clcache.exe -- Warning: Did not find file Compiler/-ASM

The workaround would be:

project(${PROJECT_NAME} LANGUAGES ASM C CXX VERSION ${PROJECT_VERSION})

-- The ASM compiler identification is MSVC -- Found assembler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe

But i am not sure either using clcache the ASM compiler should be found as C:/Python381/Scripts/clcache.exe or C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe