How to get CMake to pass either std=c++14/c++1y or c++17/c++1z based on GCC version?

When wanting to specify a particular C++ version, the recommended way to do this with CMake 3.1 and later is to use the CXX_STANDARD, CXX_STANDARD_REQUIRED and CXX_EXTENSIONS target properties, or their variable equivalents to specify target defaults. Full details can be found here, but the short version goes something like this: cmake_minimum_required(VERSION 3.1) project(Example) set(CMAKE_CXX_STANDARD … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)