steinbergmedia / vst3sdk

VST 3 Plug-In SDK
Other
1.65k stars 162 forks source link

CMake Error on Win 10 / VS 2019 building vst3 examples #116

Closed JT-user closed 11 months ago

JT-user commented 1 year ago

Having downloaded the SDK from https://www.steinberg.net/vst3sdk ... and following the \vst3sdk\README.md instructions under ### Build the examples on Windows, I ran into this CMake Error multiple times:

CMake Error at cmake/modules/SMTG_AddSMTGLibrary.cmake:480 (add_custom_command): add_custom_command called with OUTPUT containing a "<". This character is not allowed.

I ran cmake.exe -G "Visual Studio 16 2019" -A x64 ..\vst3sdk instead of the suggested cmake.exe -G "Visual Studio 17 2022" -A x64 ..\vst3sdk because i was using VS 2019.

I was using CMake version 3.19.3 after i updated to version 3.27.0-rc4 there was no Error. I suggest changing cmake_minimum_required (VERSION 3.19).

I hope this was helpful.