H. Vetinari
270120812e
unify spelling of CMAKE_INSTALL_INCLUDEDIR
...
Following GNUInstallDirs defaults, see also CMake docs:
https://cmake.org/cmake/help/latest/command/install.html
2024-02-20 21:20:08 +11:00
H. Vetinari
26f9f58806
move setting of default CMAKE_INSTALL_{BIN,INCLUDE,LIB}DIR before first use
2024-02-20 21:13:20 +11:00
Christopher Hong
a34fb4018c
Add idempotency to external absl mod
2024-01-17 19:32:48 -05:00
Taku Kudo
0018af1f31
better exteranl abseil and protobuf support
2024-01-16 02:15:46 +00:00
Ryan Schmidt
41835971b7
Fix pkg-config file to avoid overlinking
...
When configured to use external protobuf, remove -lprotobuf-lite from
pkg-config file's Libs section. The sentencepiece libraries link with
libprotobuf-lite; it is not necessary for users of the sentencepiece
libraries to link with protobuf unless they are using static linking so
this should have been in Libs.private. Use Requires.private so that we
use protobuf's pkg-config file to get the flags.
2023-05-21 13:38:08 -05:00
Taku Kudo
827591a0c5
Fixes build test errors in big-endian machines
2023-05-14 09:08:39 +00:00
Taku Kudo
7e0137c1ba
added option to /MT flag
2023-04-02 16:17:36 +00:00
Ilya Lavrenov
1983663e62
Removed replacing of /MD with /MT for MSVC
2023-03-26 22:10:01 +04:00
A2va
225fb19811
CMake need endif
2022-11-28 21:19:09 +01:00
A2va
570fb13dd8
Disable shared build on windows
2022-11-21 15:55:16 +01:00
Taku Kudo
460d15b31d
Fixed the issue of concatinating paths for pkg-config
2022-08-21 12:44:31 +09:00
Taku Kudo
5b21ad7804
Uses C++17 by default
2022-06-14 01:18:09 +09:00
Taku Kudo
43cd284683
Merge pull request #705 from zy566/minor
...
Fix typo in cmakelist
2022-02-16 10:17:12 +09:00
zy566
d972932e33
Fix typo in cmakelist
2021-10-28 14:28:26 -07:00
Alexis Praga
142662e585
Add FreeBSD support
...
<endian.h> should be <sys/endian.h> instead.
2021-09-10 22:06:15 +02:00
Daniël de Kok
cab2e3c486
Strip build directory prefix in the __FILE__ macro
...
Various macros use __FILE__ to embed the source file name in
errors/logs. However, the full path is encoder, making reproducible
builds harder.
This change uses the -fmacro-prefix-map of GCC >= 8.0 and clang >= 10.0
to remove the source directory prefix. Since only the prefix is removed,
the relevant source file names are still included.
Background:
https://reproducible-builds.org/docs/build-path/
2021-06-17 17:23:10 +02:00
Taku Kudo
7e7913ffa7
support to build spm with external absl
2021-01-08 11:33:31 +09:00
Taku Kudo
6e9bbec77f
fixed build break.
2021-01-06 18:13:21 +09:00
Taku Kudo
844ac060f8
prepare for external absl library
2021-01-03 02:28:55 +09:00
Taku Kudo
308d9bf37f
Renamed VERSION to VERSION.txt. Remove the dependency to absl::Flags from so library.
2020-11-12 17:27:56 +09:00
Kentaro Hayashi
a48c4e6b0b
cmake: use GNUInstallDirs.cmake on UNIX
...
It enables to support Multiarch path (/usr/lib/<triplet>) well.
2020-10-17 17:41:05 +09:00
Aaron Burke
ee11f1f842
sentencepiece.pc should be installed from CMAKE_CURRENT_BINARY_DIR, not CMAKE_BINARY_DIR, to support being included (and installed) from other projects
2020-08-21 10:15:42 -07:00
Guillaume Klein
8003f065f3
Declare include directories relative to the main CMakeLists.txt
...
This is useful when SentencePiece is used as a Git submodule.
2020-05-25 11:15:02 +02:00
Taku Kudo
f341bb3ab4
Fixed windows build failure
2020-05-10 00:51:03 +09:00
Taku Kudo
e66fd4a63c
Fixed windows build failure
2020-05-08 23:32:50 +09:00
Kentaro Hayashi
4966e6151e
Remove duplicated if (NOT DEFINED CMAKE_INSTALL_LIBDIR) check
2019-08-26 17:16:47 +09:00
Guillaume Klein
ae4dea4771
Declare C language in CMakeLists.txt
...
Some CMake version will fail during the configuration with 'Unknown extension ".c" for file' because C is not part of the language list.
2019-05-21 16:33:39 +02:00
Taku Kudo
7b19d68be0
use builtin protobuf-lite package in third_party
2019-01-08 11:40:08 +09:00
Taku Kudo
b4c185f7d0
added third_party as a subdir of cmake
2018-12-11 00:24:18 +09:00
Taku Kudo
ebbc1aa7fd
Enables release
2018-08-22 10:33:32 +01:00
Taku Kudo
63b37c8c96
Added make_py_wheel_mac.py
2018-08-14 17:26:39 +09:00
Taku Kudo
f15231b5e0
Update CMakeLists.txt
...
Changed the CPACK generator to 7Z.
2018-08-10 10:42:52 +09:00
Taku Kudo
550edb95c7
Sets version from VERSION file
2018-08-10 02:12:26 +09:00
Taku Kudo
e33bf2685c
Make artifcats on windows
2018-08-10 01:17:43 +09:00
Taku Kudo
bda74e2ec1
added source cpack
2018-08-09 19:56:47 +09:00
Taku Kudo
c58e5f5b1c
Fix for Windows
2018-08-06 12:47:32 +09:00
Taku Kudo
9de12b5e7d
Enable unittest on Windows
2018-08-05 11:33:17 +09:00
Taku Kudo
9f824c82cb
Added u8 literal to UTF8 string.
2018-08-01 21:33:56 +09:00
Taku Kudo
f0d8cba65a
Updated version number
2018-08-01 14:54:18 +09:00
Taku Kudo
429d53acde
Prepare windows build
2018-07-31 14:29:30 +09:00
Taku Kudo
89831f80c1
Switched to cmake
2018-07-24 15:22:49 +09:00