• Home
  • Raw
  • Download

Lines Matching +full:cmake +full:- +full:version

1 # Minimum CMake required
2 cmake_minimum_required(VERSION 3.5)
8 # CMake policies
14 # Clear VERSION variables when no VERSION is given to project()
37 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
49 string(APPEND CMAKE_CXX_FLAGS " -diag-disable=2196")
78 include(${protobuf_SOURCE_DIR}/cmake/protobuf-options.cmake)
95 # Version
101 # Parse version tweaks
102 set(protobuf_VERSION_REGEX "^([0-9]+)\\.([0-9]+)\\.([0-9]+)([-]rc[-]|\\.)?([0-9]*)$")
114 # Package version
128 message(STATUS " Version : ${protobuf_VERSION} (${protobuf_VERSION_STRING})")
133 add_definitions(-DGOOGLE_PROTOBUF_CMAKE_BUILD)
136 add_definitions(-DGOOGLE_PROTOBUF_NO_RTTI=1)
146 # CheckLinkerFlag module available in CMake >=3.18.
149 …check_linker_flag(CXX -Wl,--version-script=${CMAKE_CURRENT_BINARY_DIR}/cmaketest.map protobuf_HAVE…
153 …set(CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS} -Wl,--version-script=${CMAKE_CURRENT_BINARY_DIR}/…
180 # Explicitly set these to empty (override NOT_FOUND) so cmake doesn't
188 add_definitions(-DHAVE_ZLIB)
197 set(CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS} -std=c++11)
215 # Prior to CMake 3.15, the MSVC runtime library was pushed into the same flags
217 # CMake versions when available.
227 # https://msdn.microsoft.com/en-us/library/2kzt1wy3.aspx
229 … # http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_build_my_MSVC_application_with_a_static_runtime.3F
247 # Set source file and execution character sets to UTF-8
248 add_definitions(/utf-8)
253 …/wd4251 # 'identifier' : class 'type' needs to have dll-interface to be used by clients of class '…
258 …/wd4334 # 'operator' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift in…
269 configure_file(${protobuf_SOURCE_DIR}/cmake/extract_includes.bat.in extract_includes.bat)
283 # Generate the version.rc file used elsewhere.
284 …configure_file(${protobuf_SOURCE_DIR}/cmake/version.rc.in ${CMAKE_CURRENT_BINARY_DIR}/version.rc @…
285 set(protobuf_version_rc_file ${CMAKE_CURRENT_BINARY_DIR}/version.rc)
290 # No version.rc file.
304 add_definitions(-DUNICODE -D_UNICODE)
307 include(${protobuf_SOURCE_DIR}/cmake/libprotobuf-lite.cmake)
308 include(${protobuf_SOURCE_DIR}/cmake/libprotobuf.cmake)
310 include(${protobuf_SOURCE_DIR}/cmake/libprotoc.cmake)
313 include(${protobuf_SOURCE_DIR}/cmake/protoc.cmake)
334 include(${protobuf_SOURCE_DIR}/cmake/tests.cmake)
338 include(${protobuf_SOURCE_DIR}/cmake/conformance.cmake)
342 include(${protobuf_SOURCE_DIR}/cmake/install.cmake)
346 include(${protobuf_SOURCE_DIR}/cmake/examples.cmake)