Thanks for giving a try to FRUT!
I think you are getting this error because you are using Visual Studio 2019, but your project is not configured to support the “Visual Studio 2019” exporter.
Reprojucer.cmake is based on the same concept of “exporter” (also known as “export target”) as Projucer. There are currently 10 exporters and
Reprojucer.cmake supports 8 of them (see FRUT’s README for a bit more information). Projucer is capable of generating IDE and build system files for all configured exporters at the same time, but
Reprojucer.cmake can’t do that, since that’s not how CMake works. When configuring your project with CMake,
Reprojucer.cmake figures out which exporter should be used, based on the toolchain.
In the example you showed,
Reprojucer.cmake figured out that the exporter to use is “Visual Studio 2019”, however your project doesn’t seem to be configured to use that exporter.
CMakeLists.txt file, there is a call to the
juce_project_end function (around the end of the file normally). Before that call, you must have a call to the
jucer_export_target function for each exporter that you want to support in your project. For instance, if you want to support “Xcode (MacOSX)”, “Visual Studio 2017”, “Visual Studio 2019”, and “Linux Makefile”, then you need exactly 4 calls to
jucer_export_target. You also need to call
jucer_export_target_configuration for each exporter and for each build configuration (usually Debug and Release) that you want to use in your project.
I hope it’s a bit clearer to you now. I will try to make the error message easier to understand, especially by mentioning that the issue is coming from the user’s
Maybe I will also add the possibility to select the exporter to use when calling CMake (something like
cmake -DJUCER_EXPORTER="Visual Studio 2017") instead of letting
Reprojucer.cmake figuring it out.