Robert Edmonds
0ce231b16d
cmake: Add -I${PROTOBUF_INCLUDE_DIR} to protoc invocation
...
Apparently in some cases the protobuf compiler is unable to find its own
files, and this fix has been reported to work.
See https://github.com/protobuf-c/protobuf-c/issues/491 .
2023-07-08 21:18:06 -04:00
Robert Edmonds
7582b6e7d6
cmake: Require C++17
...
Newer versions of protobuf apparently don't build with older versions of
the C++ standard.
2023-07-02 22:58:48 -04:00
aviborg
8fd6cf4b88
remove deprecated functionality ( #542 )
...
Co-authored-by: Andreas Viborg <andreas.viborg@maxar.com>
Co-authored-by: Robert Edmonds <edmonds@users.noreply.github.com>
2023-07-02 02:39:10 -04:00
Robert Edmonds
5f2aa966de
Merge pull request #482 from KivApple/master
...
Use CMAKE_CURRENT_BINARY_DIR instead of CMAKE_BINARY_DIR
2023-07-02 02:19:16 -04:00
Robert Edmonds
484e6b98b2
Merge pull request #472 from morrisonlevi/cmake-targets
...
Export and install CMake targets
2023-07-02 02:11:05 -04:00
Robert Edmonds
a0a0131c89
Bump version to 1.4.1
2022-07-10 21:33:59 -04:00
Ivan KOLESNIKOV
500256bb37
Replace more CMAKE_BINARY_DIR to CMAKE_CURRENT_BINARY_DIR
2021-07-28 14:26:58 +02:00
Ivan KOLESNIKOV
6957eb54eb
Use CMAKE_CURRENT_BINARY_DIR instead of CMAKE_BINARY_DIR to improve compatibility (especially with building using add_subdirectory)
2021-07-28 13:36:37 +02:00
Robert Edmonds
a124b38608
Bump version to 1.4.0
2021-05-18 20:28:48 -04:00
Levi Morrison
9fd8df92ca
Export and install CMake targets
...
The steps to add this functionality are from the cmake tutorial:
https://cmake.org/cmake/help/latest/guide/tutorial/index.html
The include directories being set on the targets is necessary
for dependent targets. There is some redundancy with the
INCLUDE_DIRECTORIES calls alreday present, but I left it alone
to make the PR smaller and more approachable.
The project currently uses mixed cases in functions. This uses
lowercase on calls I touched, as this is what CMake documentation
uses and seems to be the preferred way.
I also started wrapping long lines, as some of the lines I touched
were over 170 characters.
I tested this on both Mac OS 10.15 Catalina and CentOS 7 (with
devtoolset-7) with CMake 3.10.3.
Will work on tests in CI next.
2021-04-12 18:42:47 -06:00
Robert Edmonds
5ae0762b85
Merge branch 'next' into options
2021-04-06 19:57:36 -04:00
Ilya Lipnitskiy
0e060260f0
protoc-c: add custom options support
2021-03-21 20:28:33 -07:00
Ilya Lipnitskiy
e79f7d3ac6
cmake: use static build by default, fix MSVC build
...
Matches protobuf default behavior:
https://github.com/protocolbuffers/protobuf/tree/master/cmake#dlls-vs-static-linking
Bump min cmake version to use Protobuf_USE_STATIC_LIBS:
https://cmake.org/cmake/help/latest/module/FindProtobuf.html
2021-03-15 18:01:47 -07:00
Robert Edmonds
32f0a781c7
Merge pull request #456 from ppietrasa/master
...
Install debug symbols alongside the protobuf-c.lib
2021-02-18 21:21:46 -05:00
Piotr Pietraszkiewicz
f53a8c98ad
Install debug symbols alongside the protobuf-c.lib
...
A user of the protobuf-c library is confronted with MSVC warnings about missing
PDB if the library happens to be built/configured using the CMAKE_BUILD_TYPE
"Debug" or "RelWithDebInfo". This commit deals away with the warning by
installing the "protobuf-c.pdb" alongside the lib. The .pdb is installed only
if it exists. Configuring "Release" or building under Linux won't produce and
won't install the PDB.
2021-02-08 13:58:52 +01:00
Ilya Lipnitskiy
2102d3a2c5
CMakeLists.txt: Don't include Dart if no tests
...
Also use BUILD_TESTS instead of CMAKE_BUILD_TYPE in other places in the
file.
2020-05-13 13:38:34 -07:00
James Benton
e01b30d4fe
Add BUILD_TESTS option to CMake build.
2020-05-12 10:21:30 -07:00
Ilya Lipnitskiy
12973e7f3f
CMakeLists.txt: Add option to disable protoc-gen-c
2020-05-09 15:08:28 -07:00
Ilya Lipnitskiy
3d3b5fe220
CMakeLists.txt: Enforce C++11 for old compilers
2020-05-09 14:29:06 -07:00
Ilya Lipnitskiy
ce75229b6a
CMakeLists.txt: Fix protoc-c crashes on Linux
...
-lpthread was missing from the linker command line. See
https://github.com/protocolbuffers/protobuf/issues/5107 for more
details.
.travis.yml: Run CMake debug build for verification
2020-05-09 13:27:33 -07:00
Ilya Lipnitskiy
db6c49cc43
CMakeLists.txt: Add pkg-config logic ( Fixes #339 )
2020-05-09 13:27:23 -07:00
Robert Edmonds
d0531beaad
Bump version to 1.3.3
2019-12-04 16:08:05 -05:00
Robert Edmonds
e7c18ecda7
Merge pull request #350 from msshapira/patch-2
...
fix suport for MSVC static build
2019-12-04 13:35:36 -05:00
Markus Engel
687f27726c
Fixed endianness check for cmake
...
Signed-off-by: Markus Engel <engel@sero-systems.de>
2019-10-18 21:23:55 -04:00
Robert Edmonds
62ecf2b467
Bump version to 1.3.2
2019-06-24 00:37:47 -04:00
msshapira
4d9d0614d4
fix suport for MSVC static build
2018-11-12 17:43:59 +02:00
Robert Edmonds
53bf6c0b7c
Bump version to 1.3.1
2018-08-13 23:18:25 -04:00
Robert Edmonds
25cb6e2bdf
Bump version to 1.3.0
2017-07-29 19:30:36 -04:00
alex85k
58a4514164
fixing tests building in CMake
2017-04-10 18:42:59 +05:00
AlexMilich
0656a9ac35
Static build for Windows MSVC
2016-11-27 12:39:37 +02:00
Adnan
03205837fe
fixed cmake build if built as part of an external project
2016-08-10 16:26:31 -07:00
Paolo Borelli
af2120aa55
Turn the compiler into a protoc plugin
...
Using the old "protoc-c" command directly is still supported
through a symlink.
2016-02-17 10:58:43 +01:00
Robert Edmonds
4560136675
Bump version to 1.2.1
2016-02-02 15:03:53 -05:00
Robert Edmonds
25d5e51db7
Bump version to 1.2.0
2016-01-29 19:52:28 -05:00
Robert Edmonds
9983a190a0
Bump version to 1.1.1
2015-03-14 17:00:57 -04:00
Robert Edmonds
287c916f9d
bump version to 1.1.0
2015-01-05 15:54:02 -05:00
Robert Edmonds
58f764ecfe
bump version to 1.0.2
2014-09-08 17:07:47 -04:00
Robert Edmonds
b0e0430d57
build-cmake/: add a new CMakeLists.txt file as a fallback
...
For certain platforms where autotools is not the preferred build system,
provide a fallback cmake file that can compile protoc-c and a static
library of libprotobuf-c.
Based on the file from alex85k's protobuf-c repository.
(Issue #168.)
2014-09-08 17:05:05 -04:00