set(CMAKE_CXX_STANDARD_REQUIRED TRUE) endfunction() 5 changes: 1 addition & 4 deletions 5 cmake/grpc.cmake Original file line numberDiff line numberDiff line change @@ -43,10 +43,7 @@ if(CMAKE_CROSSCOMPILING) endif() if(DEFINED CURRENT_CXX_STANDARD AND NOT CURRENT_CXX_STANDARD STRE...
set(CMAKE_CXX_STANDARD_REQUIREDTrue) 这是我的CMakeLists.txt的全部内容 代码语言:javascript 复制 cmake_minimum_required(VERSION3.7)project(myprojectVERSION1.0)set(CMAKE_CXX_STANDARD17)set(CMAKE_CXX_STANDARD_REQUIREDTrue)set(CMAKE_BUILD_TYPEDEBUG)set(CMAKE_MODULE_PATH/home/user/project-path)configu...