Hi, so I’ve been using CMake quite happily for a while and all was good.
Just been trying to track down an issue that I couldn’t reproduce on Mac or through Projucer on Windows and it turns out that I had 7.0.2, 7.0.3 and 7.0.4 installed on Windows (I’m using sustemwide version of JUCE, not per project) and it was still using 7.0.2.
I tried reinstalling JUCE again and it kept on using 7.0.2.
So, I’ve removed all JUCE installation inside JUCE/includes and JUCE/lib and started from scratch and have just installed 7.0.4
Now, however, when I try to configure my project I get the following:
CMake Error at CMakeLists.txt:13 (find_package):
Could not find a configuration file for package “JUCE” that is compatible
with requested version “”.
The following configuration files were considered but not accepted:
That shouldn’t matter, right, because installing JUCE just means copying the module sources to system directories, modules aren’t actually built and installed as binaries. The only thing I could see being an issue is if the juceaide is installed in prebuilt binary form, but I’m not sure if that’s the case.
thx for the replies. i remove the cmake_build_install folder in addition to the others above and reran the juce install and everything is working fine now.
I’ve been using these commands from the juce docs:
# Go to JUCE directory
cd /path/to/clone/JUCE
# Configure build with library components only
cmake -B cmake-build-install -DCMAKE_INSTALL_PREFIX=/path/to/JUCE/install
# Run the installation
cmake --build cmake-build-install --target install