Hmm, I might have found something else.
I did not touch anything after git clone, so CMakeLists.txt should be fine.
However, the cmake complains that CMakeLists.txt doesn’t have
cmake_minimum_required() and project() commands.
However, I checked CMakeLists.txt, and it did have those lines.
I’m including the output I get after running cmake command below.
Also here’s the CMakeOutput.log.
https://pastebin.com/raw/2ZW52eKw
Thanks so much for your help!
% cmake . -B cmake-build -DJUCE_BUILD_EXAMPLES=ON -DJUCE_BUILD_EXTRAS=ON
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as
project(ProjectName)
near the top of the file, but after cmake_minimum_required().
CMake is pretending there is a “project(Project)” command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.
– The C compiler identification is AppleClang 12.0.0.12000032
– The CXX compiler identification is AppleClang 12.0.0.12000032
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working C compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
- 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:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
- skipped
– Detecting CXX compile features
– Detecting CXX compile features - done
CMake Error at CMakeLists.txt:24 (_juce_add_pips):
Unknown CMake command “_juce_add_pips”.
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.19)
should be added at the top of the file. The version specified may be
lower
if you wish to support older CMake versions for this project. For more
information run “cmake --help-policy CMP0000”.
This warning is for project developers. Use -Wno-dev to suppress it.
– Configuring incomplete, errors occurred!
See also
“/Users/jl/Desktop/Code/JUCE/cmake-build/CMakeFiles/CMakeOutput.log”.
See also
“/Users/jl/Desktop/Code/JUCE/cmake-build/CMakeFiles/CMakeError.log”.