Open merkys opened 3 years ago
Compilation warning / failures are linked to the following lines in CMakeLists.txt:
if (CMAKE_SYSTEM_NAME MATCHES Linux)
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common")
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common")
endif (CMAKE_SYSTEM_NAME MATCHES Linux)
Which version of GCC are you using?
I am trying to build Mychem with MariaDB 10.1.47 on Ubuntu 20.04. I face many compilation failures unless I turn on
STANDARD
flag inCFLAGS
. However, I fail to find any documentation regarding this flag. Is it off by default to retain compatibility with MySQL proper?