Skip to content

Commit

Permalink
将gcc9的设置放到根cmakelist
Browse files Browse the repository at this point in the history
  • Loading branch information
guanshoukui committed Mar 11, 2024
1 parent 2de2c21 commit 944a265
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 9 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
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"
HOMEPAGE_URL "https://github.com/alibaba/yalantinglibs"
LANGUAGES CXX
)




# load pack finder
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Find/)

Expand All @@ -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)
6 changes: 3 additions & 3 deletions src/struct_pb/protoc-plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)

Expand Down

0 comments on commit 944a265

Please sign in to comment.