C:\Users\Eric\Documents\GitHub\MuseScore\CMakeLists.txt:295: error: if given arguments: "STREQUAL" "x86" Unknown arguments speci

• Mar 16, 2017 - 12:20

This line https://github.com/musescore/MuseScore/blob/master/CMakeLists.txt#L295 is giving the following error in Windows QtCreator (after I cleared all system environment variables accidentally!):

C:\Users\Eric\Documents\GitHub\MuseScore\CMakeLists.txt:295: error: if given arguments: "STREQUAL" "x86" Unknown arguments specified

I think it should be changed from:

IF($ENV{PROCESSOR_ARCHITECTURE} STREQUAL "x86")

into:

IF("$ENV{PROCESSOR_ARCHITECTURE}" STREQUAL "x86")

That is how all other IF statements look. Without knowing much about how CMAKE works, I suspect the reason is that if $ENV{PROCESSOR_ARCHITECTURE} evaluates to nothing, then that if statement become:

IF(STREQUAL "x86")

And so CMAKE mistakenly? thinks that STREQUAL is an argument to the if command.


Comments

Do you still have an unanswered question? Please log in first to post your question.