C:\Users\Eric\Documents\GitHub\MuseScore\CMakeLists.txt:295: error: if given arguments: "STREQUAL" "x86" Unknown arguments speci
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
I submitted PR: https://github.com/musescore/MuseScore/pull/3076
It was able to perform compiling after made these changes. (Although I should note the resulting binary wouldn't execute, of course.)
In reply to I submitted PR: by ericfontainejazz
and it is merged in master and 2.1