With this solution we build the libcef_dll_wrapper project and use this for our project.
This worked fine until branch 5993, but is not possible with branch 6045.
Here is the output of the command prompt on exactly the same machine with cmake version 3.28 and Visual Studio 2022 17.7.4
- Code: Select all
C:\CEF\cef_binary_118.7.1+g99817d2+chromium-118.0.5993.119_windows64\build>cmake -G "Visual Studio 17 2022" -A x64 ..\
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.22621.
-- The C compiler identification is MSVC 19.37.32824.0
-- The CXX compiler identification is MSVC 19.37.32824.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- *** CEF CONFIGURATION SETTINGS ***
-- Generator: Visual Studio 17 2022
-- Platform: Windows
-- Project architecture: x86_64
-- Binary distribution root: C:/CEF/cef_binary_118.7.1+g99817d2+chromium-118.0.5993.119_windows64/cef_binary_118.7.1+g99817d2+chromium-118.0.5993.119_windows64
-- Visual Studio ATL support: ON
-- CEF sandbox: ON
- Code: Select all
C:\CEF\cef_binary_119.2.1+gf2646ea+chromium-119.0.6045.105_windows64_beta\build>cmake -G "Visual Studio 17 2022" -A x64 ..\
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.22621.
-- The C compiler identification is MSVC 19.37.32824.0
-- The CXX compiler identification is MSVC 19.37.32824.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/cl.exe
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/cl.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.28/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
"C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/cl.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: 'C:/CEF/cef_binary_119.2.1+gf2646ea+chromium-119.0.6045.105_windows64_beta/cef_binary_119.2.1+gf2646ea+chromium-119.0.6045.105_windows64_beta/build/CMakeFiles/CMakeScratch/TryCompile-2mdejh'
Something is wrong in the compiler detection with branch 6045. As this is exactly the same environment and only different branches I think I can exclude my machine environment as the root cause.
There are some other posts in the last few days regarding build errors but this seems to be more cmake configuration related. I cannot find any difference of the cmake files in the latest branches, so I have no idea what's going on here.
Anybody else with the same problem ? Any idea how to solve this ?