Lines Matching +full:macos +full:- +full:cmake +full:- +full:shared
1 # Minimum CMake required
8 # CMake policies
10 # On MacOS use @rpath/ for target's install name prefix path
24 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
36 string(APPEND CMAKE_CXX_FLAGS " -diag-disable=2196")
52 option(protobuf_BUILD_SHARED_LIBS "Build Shared Libraries" ${protobuf_BUILD_SHARED_LIBS_DEFAULT})
62 include(protobuf-options.cmake)
88 set(protobuf_VERSION_REGEX "^([0-9]+)\\.([0-9]+)\\.([0-9]+)([-]rc[-]|\\.)?([0-9]*)$")
119 add_definitions(-DGOOGLE_PROTOBUF_CMAKE_BUILD)
123 add_definitions(-DHAVE_PTHREAD)
141 # Explicitly set these to empty (override NOT_FOUND) so cmake doesn't
149 add_definitions(-DHAVE_ZLIB)
158 set(CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS} -std=c++11)
172 set(protobuf_SHARED_OR_STATIC "SHARED")
177 # https://msdn.microsoft.com/en-us/library/2kzt1wy3.aspx
179 # http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_build_my_MSVC_application_with_a_static_runtime.3F
200 …/wd4251 # 'identifier' : class 'type' needs to have dll-interface to be used by clients of class '…
205 …/wd4334 # 'operator' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift in…
249 add_definitions(-DUNICODE -D_UNICODE)
252 include(libprotobuf-lite.cmake)
253 include(libprotobuf.cmake)
255 include(libprotoc.cmake)
258 include(protoc.cmake)
278 include(tests.cmake)
282 include(conformance.cmake)
285 include(install.cmake)
288 include(examples.cmake)