diff --git a/CMakeLists.txt b/CMakeLists.txt index 5a58498b..d37e0eb2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ project(ZLMediaKit) -cmake_minimum_required(VERSION 2.8) +cmake_minimum_required(VERSION 3.1.3) #使能c++11 -add_compile_options(-std=c++11) +set(CMAKE_CXX_STANDARD 11) #加载自定义模块 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake")