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.
6 years ago
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
7 years ago
Ivan Shynkarenka
f80a886bc1
Cygwin build failed
7 years ago
Jozef Izso
3415201d1d
Add file information to Windows binaries
7 years ago
Corentin Le Molgat
c3b152c7e0
CMake: Update CXX Standard management
7 years ago
Silver Chan
d3e8a54020
Fix problem: cmake build failed in c++11 by clang
...
CMakeLists.txt adds c++11 flags for clang
7 years ago
Corentin Le Molgat
1ec9beb477
Use NEW behaviour for project VERSION variables.
...
cf https://cmake.org/cmake/help/latest/policy/CMP0048.html#policy:CMP0048
7 years ago
Corentin Le Molgat
8dd0f4e557
Even with MSVC enable zlib support as default behaviour.
7 years ago
Yangqing Jia
cba18efe18
Allow one to omit building libprotoc and protoc binaries
7 years ago
Tim Ebringer
a23669c2f6
Sort MSVC warning suppressions
...
Add brief documentation describing each warning suppression.
7 years ago
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.
7 years ago
Wojciech Mamrak
37bd5d525b
Disable MSVC warning C4309
...
> warning C4309: static_cast': truncation of constant value
introduced in commit 9db5b11c9c
8 years ago
Wei-Yin Chen (陳威尹)
a7eaf36967
Rename UNICODE to protobuf_UNICODE
8 years ago
Wei-Yin Chen (陳威尹)
588a803d58
Support Unicode build on Windows
8 years ago
Konstantin Podsvirov
eefd1fdd48
CMake: Auto find ZLIB from package config if nedded
8 years ago
Walter Gray
4150a91c14
make protobuf_MSVC_STATIC_RUNTIME a dependent option to reflect it's use.
9 years ago
Walter Gray
23fef56e6d
Replace handwritten protobuf-targets with exported version.
9 years ago
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.
9 years ago
Walter Gray
f1091ab1aa
Include the prerelease version in the protobuf_VERSION
9 years ago
Walter Gray
c57c6eabf7
Bump to the *real* minimum required version. Setting CMP0022 breaks CMake versions < 2.8.12
9 years ago
Jisi Liu
3b6df0612d
Allow bigobj for map_unittest
9 years ago
Benjamin Bennett
9fc4d90cab
MSVC MP flag to build with multiple processes in visual studio.
9 years ago
Konstantin Podsvirov
c3aa4c2675
Improved SHARED build from CMake project
9 years ago
Konstantin Podsvirov
f397ede7c6
Add CMake option protobuf_DEBUG_POSTFIX
9 years ago
Konstantin Podsvirov
0a22fe59b7
Rename CMake option BUILD_SHARED_LIBS to protobuf_BUILD_SHARED_LIBS
9 years ago
Konstantin Podsvirov
620bd7418d
Rename CMake option ZLIB to protobuf_WITH_ZLIB
9 years ago
Konstantin Podsvirov
673d32e093
Rename CMake option BUILD_TESTING to protobuf_BUILD_TESTS
9 years ago
Konstantin Podsvirov
905f464035
Using NEW behavior for CMP0022 in CMake project
9 years ago
Konstantin Podsvirov
d79e0379f2
Option for switching static runtime link policy with MSVC
9 years ago
Konstantin Podsvirov
20b882d469
Using find_package(ZLIB) with MSVC too
9 years ago
Konstantin Podsvirov
db01460042
Improved configure.ac parsing
9 years ago
Jan Tattermusch
9bdeba479b
only link runtime libraries statically for a static build
9 years ago
Jan Tattermusch
1858ac9b42
make VS build link runtime statically
9 years ago
Konstantin Podsvirov
743ec448c5
Parsing version from configure.ac for CMake project
9 years ago
Konstantin Podsvirov
82983433cf
Install protobuf from cmake project
...
Additional export as "protobuf" package
for importing from other cmake projects
9 years ago
Jisi Liu
78d470c7a5
Make the code independent of config.h
...
Now the Build tool needs to define -DHAVE_ZLIB and -DHAVE-PTHREAD rather
than providing a config.h
- Make pbconfig.h a manually written file to handle hash conditions
according to platform related macros.
- Remove #include "config.h" from source code.
- Changed the configure.ac and Makefile.am to pass down the macros.
- Change cmake to pass down the the macros.
Change-Id: I537249d5df8fdeba189706aec436d1ab1104a4dc
10 years ago
Feng Xiao
dffd542bb8
Update ./update_file_lists.sh.
...
Make it executable and generate extract_includes.bat in the same directory.
10 years ago
Feng Xiao
e9839ff444
Add back incorrectly excluded cmake targets.
10 years ago
Feng Xiao
34448fca45
Add an cmake option to exclude tests.
10 years ago
Feng Xiao
4333edb340
Add cmake support.
10 years ago