antlr-4.7-cpp-cmake-base
antlr-4.7-cpp-cmake-base copied to clipboard
OSX Build fails
ON os I have downloaded the git repository the make. command goes well but man give this error:
Scanning dependencies of target antlr4cpp
[ 10%] Creating directories for 'antlr4cpp'
[ 20%] Performing download step (verify and extract) for 'antlr4cpp'
-- antlr4cpp download command succeeded. See also /Users/bisegni/sources/greeshift/antlr-4.7-cpp-cmake-base/locals/antlr4cpp/src/antlr4cpp-stamp/antlr4cpp-download-*.log
[ 30%] No patch step for 'antlr4cpp'
[ 40%] No update step for 'antlr4cpp'
[ 50%] Performing configure step for 'antlr4cpp'
-- antlr4cpp configure command succeeded. See also /Users/bisegni/sources/greeshift/antlr-4.7-cpp-cmake-base/locals/antlr4cpp/src/antlr4cpp-stamp/antlr4cpp-configure-*.log
[ 60%] Performing build step for 'antlr4cpp'
CMake Error at /Users/bisegni/sources/greeshift/antlr-4.7-cpp-cmake-base/locals/antlr4cpp/src/antlr4cpp-stamp/antlr4cpp-build-.cmake:49 (message):
Command failed: 2
'/Library/Developer/CommandLineTools/usr/bin/make'
See also
/Users/bisegni/sources/greeshift/antlr-4.7-cpp-cmake-base/locals/antlr4cpp/src/antlr4cpp-stamp/antlr4cpp-build-*.log
make[2]: *** [locals/antlr4cpp/src/antlr4cpp-stamp/antlr4cpp-build] Error 1
make[1]: *** [CMakeFiles/antlr4cpp.dir/all] Error 2
make: *** [all] Error 2
the error in log file is:
==> /Users/bisegni/sources/greeshift/antlr-4.7-cpp-cmake-base/locals/antlr4cpp/src/antlr4cpp-stamp/antlr4cpp-build-err.log <== make[3]: *** No targets specified and no makefile found. Stop.
==> /Users/bisegni/sources/greeshift/antlr-4.7-cpp-cmake-base/locals/antlr4cpp/src/antlr4cpp-stamp/antlr4cpp-build-out.log <==
Did you solve the problem? Because I have the same problem.
Oh, I found the solution: Just simply change the ExternalAntlr4Cpp.cmake file at CONFIGURE_COMMAND -BUILD_TESTS=OFF to -DBUILD_TESTS=OFF. Just one character, D. 👍🏻