From 12b7362ef5f417ebfdf0d63c70387bedba1790ee Mon Sep 17 00:00:00 2001 From: AlanRen Date: Sun, 18 Sep 2022 03:57:32 +0800 Subject: [PATCH] add --- CMakeLists.txt | 3 ++- include/common.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c84912..901bc62 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,6 @@ cmake_minimum_required(VERSION 3.9) project(SecMedia VERSION 0.0.1 DESCRIPTION "Security Media Package") +set(CMAKE_CXX_STANDARD 11) SET(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/release/lib) SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/release/out) @@ -11,7 +12,7 @@ set(CMAKE_CXX_FLAGS$ "${CMAKE_CXX_FLAGS} -fvisibility = hidden") add_compile_options(-fPIC) add_compile_options(-fvisibility=hidden) - +add_compile_options(-std=c++11) include(GNUInstallDirs) include(GenerateExportHeader) include_directories(include src) diff --git a/include/common.h b/include/common.h index c4e2e72..5cb1074 100644 --- a/include/common.h +++ b/include/common.h @@ -24,6 +24,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" {