From c0121a31051557086aa2a18ceb976a1efde30c7a Mon Sep 17 00:00:00 2001 From: Kashyap Date: Tue, 5 Nov 2024 10:27:57 +0530 Subject: [PATCH] Compiler version added in CMakeLists Without compiler version code compiles using default compiler version. And this code can not build on c++17. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 067594d..2ab714b 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,9 @@ PROJECT(MYSQLCPPCONN) # Bump this every time we change the API/ABI SET(MYSQLCPPCONN_SOVERSION "6") +# Set C++ compiler version +set(CMAKE_CXX_STANDARD 14) + IF(WIN32) # We need this for mysqlcppconn_EXPORTS needed for the static build