This may not be a juce-specific problem because I don’t get this error building locally but has anyone seen the following error building juce cmake projects with VS2019?
cmake version 3.22.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
\n==========================================
PLATFORM: windows
ROOT: /d/a/tracktion_engine/tracktion_engine
DISABLE_BUILD:
DISABLE_TOOLS: 1
MSBuild not found at , using default
PROJECT_NAME: TestRunner
BINARY_NAME: TestRunner.exe
APP_NAME: TestRunner.exe
APP_DIR: /d/a/tracktion_engine/tracktion_engine/examples/TestRunner/build/TestRunner_artefacts/Release
APP_FILE: /d/a/tracktion_engine/tracktion_engine/examples/TestRunner/build/TestRunner_artefacts/Release/TestRunner.exe
CMAKE_BUILD_DIR: /d/a/tracktion_engine/tracktion_engine/examples/TestRunner/build
CMAKE_GENERATOR:
DISABLE_BUILD:
RUN_EXAMPLE: 1
DISABLE_TOOLS: 1
RUN_ARGS:
/d/a/tracktion_engine/tracktion_engine/examples/TestRunner
-- Building for: Visual Studio 17 2022
-- The C compiler identification is MSVC 19.30.30709.0
-- The CXX compiler identification is MSVC 19.30.30709.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.30.30705/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.30.30705/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring juceaide
-- Building juceaide
CMake Error at D:/a/tracktion_engine/tracktion_engine/modules/juce/extras/Build/juceaide/CMakeLists.txt:92 (message):
Failed to build juceaide
Microsoft (R) Build Engine version 17.0.0+c9eb9dd64 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Checking File Globs
Checking Build System
Building Custom Rule D:/a/tracktion_engine/tracktion_engine/modules/juce/extras/Build/juceaide/CMakeLists.txt
Main.cpp
juce_build_tools.cpp
juce_gui_basics.cpp
juce_graphics.cpp
C:\Program Files (x86)\Windows
Kits\10\Include\10.0.20348.0\um\mapi.h(250,15): error C2279: exception
specification cannot appear in a typedef declaration (compiling source file
D:\a\tracktion_engine\tracktion_engine\modules\juce\modules\juce_graphics\juce_graphics.cpp)
[D:\a\tracktion_engine\tracktion_engine\examples\TestRunner\build\cmake_build_juce\tools\extras\Build\juceaide\juceaide.vcxproj]
That same C2279
error is then repeated about 100 times for each juce file compiled and at multiple points in that mapi.h
. The weird thing is that it’s a Windows header file.
Any pointers?