Problems solved. Thank you. I tried git submodule update --init build-common, and it works.
Hi there. I was trying to install MuSiC suit following Installation Of The Music Suite On Unsupported Linux Distributions. But I stuck in compiling and installing joinx. The dependencies should not be a problem. But the following command does not work out.
cmake joinx_source_dir -DBOOST_ROOT=boost_dir -DBoost_NO_SYSTEM_PATHS=on -DCMAKE_INSTALL_PREFIX=/usr/local/joinx
And I got the following error message:
CMake Error at CMakeLists.txt:72 (add_projects):
Unknown CMake command "add_projects".
I don't know how CMake works. It seems "add_projects" is not a valid command in CMake, and I could not find any information about "add_projects". What was that exactly?
1 answer
Included as part of joinx is the build-common set of cmake helpers (add_projects is part of that). Since this is a git submodule, it is likely you didn't obtain the files and it contains an empty directory.
There are two possible remedies.
- Use git to retrieve the build-common code by either redoing your clone using the recursive option
git clone --recursive git@github.com:genome/joinx.gitor usinggit submodule update --init build-commonfrom within the main joinx directory. - Download the build-common code from here: https://github.com/genome/build-common and put those files into the empty build-common directory in your joinx directory.
Log in to answer this question.