Your project files are doing some things they must not do:
- The first call to
project()
must occur in the top levelCMakeLists.txt
file. That isn’t the case for you, the one inbps/CMakeLists.txt
will be the first one that is reached. - As mentioned in my earlier reply, your toolchain file enables the ASM, C and CXX languages. They must not do that. Only project code should be enabling languages.