Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe Build flags: Id flags: The output was: 2 Microsoft (R) C/C++ Optimizing Compiler Version 19.24.28316 for x64 Copyright (C) Microsoft Corporation. All rights reserved. CMakeCCompilerId.c Microsoft (R) Incremental Linker Version 14.24.28316.0 Copyright (C) Microsoft Corporation. All rights reserved. /out:CMakeCCompilerId.exe CMakeCCompilerId.obj LINK : fatal error LNK1104: cannot open file 'kernel32.lib' Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe Build flags: Id flags: The output was: 2 Microsoft (R) C/C++ Optimizing Compiler Version 19.24.28316 for x64 Copyright (C) Microsoft Corporation. All rights reserved. CMakeCXXCompilerId.cpp Microsoft (R) Incremental Linker Version 14.24.28316.0 Copyright (C) Microsoft Corporation. All rights reserved. /out:CMakeCXXCompilerId.exe CMakeCXXCompilerId.obj LINK : fatal error LNK1104: cannot open file 'kernel32.lib' Determining if the C compiler works failed with the following output: Change Dir: C:/Users/pieterh/Documents/BTKCore-master/build-Matlab-Release-Redistribuable/CMakeFiles/CMakeTmp Run Build Command(s):nmake /nologo cmTC_79e2b\fast && "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.24.28314\bin\HostX64\x64\nmake.exe" -f CMakeFiles\cmTC_79e2b.dir\build.make /nologo -L CMakeFiles\cmTC_79e2b.dir\build Building C object CMakeFiles/cmTC_79e2b.dir/testCCompiler.c.obj C:\PROGRA~2\MICROS~4\2019\ENTERP~1\VC\Tools\MSVC\1424~1.283\bin\Hostx64\x64\cl.exe @C:\Users\pieterh\AppData\Local\Temp\nm2156.tmp testCCompiler.c Linking C executable cmTC_79e2b.exe "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_79e2b.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- C:\PROGRA~2\MICROS~4\2019\ENTERP~1\VC\Tools\MSVC\1424~1.283\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\cmTC_79e2b.dir\objects1.rsp @C:\Users\pieterh\AppData\Local\Temp\nm2195.tmp RC Pass 1: command "rc /fo CMakeFiles\cmTC_79e2b.dir/manifest.res CMakeFiles\cmTC_79e2b.dir/manifest.rc" failed (exit code 0) with the following output: The system cannot find the file specifiedNMAKE : fatal error U1077: '"C:\Program Files\CMake\bin\cmake.exe"' : return code '0xffffffff' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.24.28314\bin\HostX64\x64\nmake.exe"' : return code '0x2' Stop.