From c05cd56dc8c12000f0b0d316b805913ae6c57c32 Mon Sep 17 00:00:00 2001 From: MaxXSoft Date: Thu, 10 Dec 2020 12:46:56 +0800 Subject: [PATCH] Enabled C++11 in CMake --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ce51105..dfc6308 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,9 @@ configure_file(${version_header} ${CMAKE_CURRENT_BINARY_DIR}/elfio_version.hpp.c project(elfio VERSION ${version} LANGUAGES C CXX) +# Enable C++11 +set(CMAKE_CXX_STANDARD 11) + include(GNUInstallDirs) # Create a header only CMake target for elfio @@ -104,4 +107,4 @@ if (IS_TOP_PROJECT) elfio EXPORT ${PROJECT_NAME}_Targets) -endif() \ No newline at end of file +endif()