![]() ![]() The current configuration mixes Clang and MSVC or some other CL compatibleĬompiler tool. It finds gcc as c compiler and complains that clang & msvc can't be mixed.ĬMake Error at C:/Program Files/CMake/share/cmake-3.16/Modules/Platform/Windows-Clang.cmake:104 (message): ![]() It appears that with beta08, dpcpp interface has become more like MSVC compiler (switches starting with / instead of -).Ĭmake -G "Unix Makefiles" -D CMAKE_CXX_COMPILER=dpcpp. I am trying to build a library+test app (with gtest) however my issue is with CMAKE on windows 10. Tl dr: how do I invoke cmake so that I can use dpcpp as c++ compiler on windows 10 (to generate Makefile)? Make.exe: Leaving directory `C:/Users/intel/Downloads/cudacode/dpct_repos/libSGM_OneAPI/build/CMakeFiles/CMakeTmp'Īnd I can't use clang++ as compiler as mentioned below. "C:/Program Files (x86)/Intel/oneAPI/compiler/latest/windows/bin/dpcpp.exe" /nologo -TP -Wno-sycl-strict /MDd /Zi /Ob0 /Od /RTC1 /FoCMakeFiles/cmTC_7c364.dir/ /FdCMakeFiles/cmTC_7c364.dir/ -c C:/Users/intel/Downloads/cudacode/dpct_repos/libSGM_OneAPI/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxxĭpcpp: error: no such file or directory: 'C:/Program Files/Git/nologo'ĭpcpp: error: no such file or directory: 'C:/Program Files/Git/MDd'ĭpcpp: error: no such file or directory: 'C:/Program Files/Git/Zi'ĭpcpp: error: no such file or directory: 'C:/Program Files/Git/Ob0'ĭpcpp: error: no such file or directory: 'C:/Program Files/Git/Od'ĭpcpp: error: no such file or directory: 'C:/Program Files/Git/RTC1'ĭpcpp: error: no such file or directory: 'C:/Program Files/Git/FoCMakeFiles/cmTC_7c364.dir/'ĭpcpp: error: no such file or directory: 'C:/Program Files/Git/FdCMakeFiles/cmTC_7c364.dir/' So that issue is solved but it is still not taking dpcpp as a valid CXX compiler and throwing the error: Building CXX object CMakeFiles/cmTC_7c364.dir/ EDIT: Apparently if we specify LANGUAGES CXX in project, cmake doesn't check for C compiler.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |