diff --git a/CMakeLists.txt b/CMakeLists.txt index b3f7079d6..dd2a305ef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,9 @@ cmake_minimum_required(VERSION 3.10) + +set(CMAKE_C_COMPILER gcc-9) +set(CMAKE_CXX_COMPILER g++-9) +set(CMAKE_CXX_STANDARD 17) + project(yaLanTingLibs VERSION 0.2.9 DESCRIPTION "yaLanTingLibs" @@ -6,6 +11,9 @@ project(yaLanTingLibs LANGUAGES CXX ) + + + # load pack finder list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Find/) @@ -31,4 +39,4 @@ if(CMAKE_PROJECT_NAME STREQUAL "yaLanTingLibs") # if ylt is top-level project endif() -# add_subdirectory(src/struct_pb/protoc-plugin) +add_subdirectory(src/struct_pb/protoc-plugin) diff --git a/src/struct_pb/protoc-plugin/CMakeLists.txt b/src/struct_pb/protoc-plugin/CMakeLists.txt index 82aaaee16..bf6318b0b 100644 --- a/src/struct_pb/protoc-plugin/CMakeLists.txt +++ b/src/struct_pb/protoc-plugin/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.10) -set(CMAKE_C_COMPILER gcc-9) -set(CMAKE_CXX_COMPILER g++-9) -set(CMAKE_CXX_STANDARD 17) +# set(CMAKE_C_COMPILER gcc-9) +# set(CMAKE_CXX_COMPILER g++-9) +# set(CMAKE_CXX_STANDARD 17) project(protoc-gen-struct_pb)