mirror of
https://github.com/fumiama/simple-protobuf.git
synced 2026-06-21 02:40:25 +08:00
Update CMakeLists.txt
This commit is contained in:
@@ -8,11 +8,9 @@ if (${isBigEndian})
|
|||||||
add_definitions(-DWORDS_BIGENDIAN)
|
add_definitions(-DWORDS_BIGENDIAN)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
#判断编译器类型,如果是gcc编译器,则在编译选项中加入c99支持
|
#在编译选项中加入c99支持
|
||||||
if(CMAKE_COMPILER_IS_GNUCXX)
|
add_compile_options(-std=c99)
|
||||||
add_compile_options(-std=c99)
|
message(STATUS "optional:-std=c99")
|
||||||
message(STATUS "optional:-std=c99")
|
|
||||||
endif(CMAKE_COMPILER_IS_GNUCXX)
|
|
||||||
|
|
||||||
add_library(spb SHARED protobuf.c)
|
add_library(spb SHARED protobuf.c)
|
||||||
add_library(spb_static STATIC protobuf.c)
|
add_library(spb_static STATIC protobuf.c)
|
||||||
|
|||||||
Reference in New Issue
Block a user