find_package(JUCE CONFIG REQUIRED) to reference to JUCE. This works fine when i call it this way:
cmake -B cmake-build -DCMAKE_PREFIX_PATH=../juce/install
but it does not work when i want to genereate the Xcode file for iOS with
cmake -Bbuild-ios -GXcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_PREFIX_PATH=../juce/install
I’m getting following error for the same CMake file:
CMake Error at CMakeLists.txt:8 (find_package): Could not find a package configuration file provided by "JUCE" with any of the following names: JUCEConfig.cmake juce-config.cmake
I’m a beginner with CMake. Any help is welcome.