GCC picks up wrong version of the C compiler (MySQL server)

Hi there.
I was compiling MySQL server sources on OpenSUSE Leap 15.6. I was specifying compilers like this:

cmake -DCMAKE_CXX_COMPILER=g+±16 _DCMAKE_C_COMPILER=gcc-16 -DWITH_SYSTEM_LIBS=TRUE ..

Here is what I get:

– Running cmake version 3.28.3
– Found Git: /usr/bin/git (found version “2.43.0”)
– CMAKE_MODULE_PATH is /home/yantitarenko5/mysql-server/cmake
– MySQL 9.3.0
– The C compiler identification is GNU 7.5.0
– The CXX compiler identification is GNU 16.0.0
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working C compiler: /usr/bin/cc - skipped
– Detecting C compile features
– Detecting C compile features - done
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Check for working CXX compiler: /usr/bin/g+±16 - skipped
– Detecting CXX compile features
– Detecting CXX compile features - done

Please help

There’s a typo in your command line. You have an underscore in _DCMAKE_C_COMPILER instead of the expected dash -DCMAKE_C_COMPILER

Thanks. You can close this.