Florian Simon
b9a036b444
Do not disable RTTI by default in the CMake build
2021-03-04 10:18:33 -08:00
Florian Simon
1add7a7bd6
Create a CMake option to control whether or not RTTI is enabled
...
This is useful for Conan recipes that build Protobuf, in which
whatever we want to enable has to be enabled in the initial command line.
Without this, the people maintaining the recipe have to patch the CMake
setup of Protobuf before building the binaries.
Closes #5541
2021-03-02 13:47:05 -08:00
Daniel Joos
c8f76331ab
Adds a CMake option to build libprotoc
separately ( #7949 )
...
This exposes the variable `protobuf_BUILD_LIBPROTOC` as CMake option to be able to build libprotoc without building the protoc binary.
2020-10-09 15:54:39 -07:00
Peter Newman
e2cc2de304
Fix lots of spelling errors ( #7751 )
...
* Fix a typo
* Fix lots of spelling errors
* Fix a few more spelling mistakes
* s/parsable/parseable/
* Don't touch the third party files
* Cloneable is the preferred C# term
* Copyable is the preferred C++ term
* Revert "s/parsable/parseable/"
This reverts commit 534ecf7675
.
* Revert unparseable->unparsable corrections
2020-08-10 11:08:25 -07:00
Michael WERLE
976f85b5d5
Add "WITH_CMAKE" define to allow cross-compiling when using the cmake build system.
2020-05-11 10:19:18 -07:00
Chuck Atkins
10c48c980f
Intel compiler: silence noisy warning for incorrectly evaluated inlining
2020-02-12 13:08:59 -08:00
Rafi Kamal
de75651d7a
Merge 3.11.0-rc1 changes to master ( #6917 )
...
* Update CHANGES.txt with 3.11.0-RC1 release notes (#6909 )
* Revert "Make shared libraries be able to link to MSVC static runtime libraries, so that VC runtime is not required." (#6914 )
* Marked update_compatibility_version.py as executable (#6916 )
2019-11-20 18:03:29 -08:00
veawor
129a7c875f
Make shared libraries be able to link to MSVC static runtime libraries, so that VC runtime is not required.
2019-10-30 16:31:05 -07:00
Changming Sun
95a1c4fbc4
Fix #6098
2019-09-27 15:44:33 -07:00
Ben Bader
56e7bdf278
Fix builtin_atomics check in CMakeLists.txt
2019-07-08 20:30:04 -07:00
boscosiu
55ed1d427c
link libatomic on systems without adequate builtin atomics
2019-07-03 15:32:29 -07:00
Paul Yang
5b4ac53c97
Add several fixes for python toolchain ( #5667 )
...
* Add several fixes for python toolchain
* Fix versin regex
* Make script exit on error
* Fix version regex
* Fix version regex
* Fix version regex
* Fix version regex
* Make test run on the current commit
* Fix test
* Fix test
* Use git to retrieve current commit
* Fix tests
* Fix tests
* Also make linux and mac work on the current commit
* Fix test
2019-02-01 18:43:55 -08:00
Josh Haberman
4249692ce6
Added cmake build files for the conformance test runner.
...
I want to use the conformance tests from upb, which is switching
to CMake.
2018-08-24 12:27:21 -07:00
Mizux
7306f549bf
CMake OSX rpath management ( #4620 )
...
* CMake: Add comment for CMP0048
* CMake: osx use @rpath/ as target's install name (CMP0042)
On MacoS library should use @rpath/ as prefix path instead of absolute build path
e.g. otool -L libprotobuf.dylib
libprotobuf.dylib:
@rpath/libprotobuf.dylib (...)
...
* CMake: add rpath to target for LINUX and APPLE
2018-05-22 12:52:07 -07:00
Feng Xiao
ac34bf8f59
Merge pull request #4579 from jozefizso/dev/3380_version_info
...
Include version information in Windows binaries #3380
2018-05-14 13:47:28 -07:00
Ivan Shynkarenka
f80a886bc1
Cygwin build failed
2018-05-02 03:01:10 +03:00
Jozef Izso
3415201d1d
Add file information to Windows binaries
2018-04-27 23:44:38 +02:00
Corentin Le Molgat
c3b152c7e0
CMake: Update CXX Standard management
2018-04-24 17:21:16 +02:00
Silver Chan
d3e8a54020
Fix problem: cmake build failed in c++11 by clang
...
CMakeLists.txt adds c++11 flags for clang
2018-04-04 10:31:05 +08:00
Corentin Le Molgat
1ec9beb477
Use NEW behaviour for project VERSION variables.
...
cf https://cmake.org/cmake/help/latest/policy/CMP0048.html#policy:CMP0048
2018-02-01 20:31:50 +01:00
Corentin Le Molgat
8dd0f4e557
Even with MSVC enable zlib support as default behaviour.
2018-02-01 20:31:36 +01:00
Yangqing Jia
cba18efe18
Allow one to omit building libprotoc and protoc binaries
2017-11-13 15:15:39 -08:00
Tim Ebringer
a23669c2f6
Sort MSVC warning suppressions
...
Add brief documentation describing each warning suppression.
2017-10-21 09:40:32 -04:00
Tim Ebringer
2a72840425
Suppress VS2017 compiler/linker warnings
...
VS2017 warns about a few additional things, for example, files that
define no symbols (which is typically the result of a platform specific
ifdef not applying on Windows).
Suppress these warnings so the build is clean on VS2017.
2017-10-06 15:56:30 -04:00
Wojciech Mamrak
37bd5d525b
Disable MSVC warning C4309
...
> warning C4309: static_cast': truncation of constant value
introduced in commit 9db5b11c9c
2017-02-18 15:44:29 +01:00
Wei-Yin Chen (陳威尹)
a7eaf36967
Rename UNICODE to protobuf_UNICODE
2016-09-01 17:18:22 -07:00
Wei-Yin Chen (陳威尹)
588a803d58
Support Unicode build on Windows
2016-08-31 17:28:51 -07:00
Konstantin Podsvirov
eefd1fdd48
CMake: Auto find ZLIB from package config if nedded
2016-08-02 22:37:36 +03:00
Walter Gray
4150a91c14
make protobuf_MSVC_STATIC_RUNTIME a dependent option to reflect it's use.
2016-06-09 17:27:46 -07:00
Feng Xiao
6aa981f949
Merge pull request #1624 from yeswalrus/cmake-prerelease-versioning
...
CMake prerelease versioning
2016-06-07 14:08:03 -07:00
Walter Gray
23fef56e6d
Replace handwritten protobuf-targets with exported version.
2016-06-06 12:06:55 -07:00
Konstantin Podsvirov
71556295ff
CMake project updates
...
A series of improvements:
- Improved Protobuf module compatibility (disabled by default);
- Hide advanced settings;
- Added build tree configuration;
- Added build of examples.
2016-06-04 00:10:07 +03:00
Walter Gray
f1091ab1aa
Include the prerelease version in the protobuf_VERSION
2016-05-31 17:07:41 -07:00
Walter Gray
c57c6eabf7
Bump to the *real* minimum required version. Setting CMP0022 breaks CMake versions < 2.8.12
2016-05-26 23:39:17 -07:00
Jisi Liu
3b6df0612d
Allow bigobj for map_unittest
2016-04-01 15:02:45 -07:00
Benjamin Bennett
9fc4d90cab
MSVC MP flag to build with multiple processes in visual studio.
2015-12-07 13:54:02 -06:00
Konstantin Podsvirov
c3aa4c2675
Improved SHARED build from CMake project
2015-10-15 02:56:48 +03:00
Konstantin Podsvirov
f397ede7c6
Add CMake option protobuf_DEBUG_POSTFIX
2015-09-17 13:00:12 +03:00
Konstantin Podsvirov
0a22fe59b7
Rename CMake option BUILD_SHARED_LIBS to protobuf_BUILD_SHARED_LIBS
2015-09-15 15:36:20 +03:00
Konstantin Podsvirov
620bd7418d
Rename CMake option ZLIB to protobuf_WITH_ZLIB
2015-09-15 15:31:25 +03:00
Konstantin Podsvirov
673d32e093
Rename CMake option BUILD_TESTING to protobuf_BUILD_TESTS
2015-09-15 15:30:02 +03:00
Konstantin Podsvirov
905f464035
Using NEW behavior for CMP0022 in CMake project
2015-09-01 16:44:48 +03:00
Konstantin Podsvirov
d79e0379f2
Option for switching static runtime link policy with MSVC
2015-09-01 15:00:00 +03:00
Konstantin Podsvirov
20b882d469
Using find_package(ZLIB) with MSVC too
2015-08-31 16:23:40 +03:00
Konstantin Podsvirov
db01460042
Improved configure.ac parsing
2015-08-31 15:20:18 +03:00
Feng Xiao
f818183f9b
Merge pull request #673 from podsvirov/topic-cmake-install
...
Install protobuf from cmake project
2015-08-12 23:07:54 -07:00
Jan Tattermusch
9bdeba479b
only link runtime libraries statically for a static build
2015-08-12 12:47:02 -07:00
Jan Tattermusch
1858ac9b42
make VS build link runtime statically
2015-08-08 19:56:52 -07:00
Konstantin Podsvirov
743ec448c5
Parsing version from configure.ac for CMake project
2015-08-01 02:01:42 +03:00
Konstantin Podsvirov
82983433cf
Install protobuf from cmake project
...
Additional export as "protobuf" package
for importing from other cmake projects
2015-07-31 23:36:00 +03:00