Cmake can't build project (No sources given to target: vstgui_standalone)

I’m trying to generate a project using the vst3 project generator, and I get the following error whenever I try to compile it with the vstgui:

– The C compiler identification is GNU 12.2.0
– The CXX compiler identification is GNU 12.2.0
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working C compiler: C:/msys64/mingw64/bin/cc.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:/msys64/mingw64/bin/c++.exe - skipped
– Detecting CXX compile features
– Detecting CXX compile features - done
– [SMTG] CMAKE_SOURCE_DIR is set to: D:/VST_DEV/projects/trippysynth
– [SMTG] CMAKE_CURRENT_LIST_DIR is set to: D:/VST_DEV/vst-sdk_3.7.6_build-18_2022-09-05/VST_SDK/vst3sdk
– [SMTG] Disable all VST3 samples
– [SMTG] SMTG_VSTGUI_SOURCE_DIR is set to: D:/VST_DEV/vst-sdk_3.7.6_build-18_2022-09-05/VST_SDK/vst3sdk/vstgui4
– Found EXPAT: C:/msys64/mingw64/lib/libexpat.dll.a (found version “2.4.9”)
– [SMTG] SMTG_AAX_SDK_PATH is not set. If you need it, please download the AAX SDK!
– Performing Test SMTG_USE_STDATOMIC_H
– Performing Test SMTG_USE_STDATOMIC_H - Failed
– [SMTG] Setup running moduleinfotool for trippysynth
– [SMTG] Setup running validator for trippysynth
– [SMTG] SMTG_PLUGIN_TARGET_PATH is set to: C:\Users\nikms\AppData\Local\Programs\Common\VST3
– Configuring done
CMake Error at D:/VST_DEV/vst-sdk_3.7.6_build-18_2022-09-05/VST_SDK/vst3sdk/vstgui4/vstgui/standalone/CMakeLists.txt:122 (add_library):
No SOURCES given to target: vstgui_standalone

CMake Generate step failed. Build files cannot be regenerated correctly.

Any help would be appreciated :smiley:

I don’t think that the combination of Windows and GCC is supported by the SDK. You can use the free Visual Studio Community Edition 2022 to build VST3 plug-ins on Windows.

Is it possible to develop in CLion?

@nixento Absolutely. CLion supports CMake natively so it just works. I have been using it for years…

I’m trying to generate it using ninja, but I’m getting this error. How did you generate the project files for clion?