Eli Schwartz
bfbed6434d
simplify the use of *nix symbol exports
...
It is generally never wrong to avoid setting the symbol visibility to
default for public symbols. It is already checked for compilers that
actually support the attribute.
The visibility define merely tells the compiler that the symbol is
semantically an interface symbol. This is already the default for all
symbols. The real purpose of the attribute is simply to override
-fvisibility passed on the command line.
On *nix, you can set visibility for both shared and static libraries
without harm anyway.
Despite this, respect the "hidden symbols" option. There's no actual use
for creating a shared library without symbols, and it's essentially a
no-op for static libraries, but in the static library case one might be
including cJSON into another shared library, and not want to expose the
cJSON symbols.
Therefore, make the header *directly* respect this option, rather than
conditionalizing it on the CMakeLists.txt both setting the hidden
symbols define *and* undefining the visibility define.
2022-07-01 00:05:09 -04:00
10km
e7ebe77ebf
fix: 'cjson_utils-static' target not exist( #625 )
...
* Update CMakeLists.txt
fix the bug:when build with cmake using option '-DBUILD_SHARED_AND_STATIC_LIBS=ON -DENABLE_CJSON_UTILS=ON', build sucess,
but use cmake comand 'find_package(cjson CONFIG)', 'cjson_utils' target is available,but 'cjson_utils-static' target not exist.
2022-01-19 16:28:29 +08:00
Andy
61eb84d991
add an option for ENABLE_CJSON_VERSION_SO in CMakeLists.txt ( #534 )
...
Co-authored-by: m00209177 <malihu@huawei.com>
2022-01-19 14:45:02 +08:00
Joshua Arulsamy
c77a688927
build: Bump cmake version and use new version syntax ( #587 )
...
Co-authored-by: Alan Wang <wp_scut@163.com>
2021-10-22 16:15:19 +08:00
Alan Wang
e5dbaee131
docs: update comment ( #622 )
2021-10-22 16:09:45 +08:00
SuperHuan
189dcde644
fix: add cmake_policy to CMakeLists.txt ( #613 )
...
Use the cmake_policy() command to set CMP0054 to NEW explicitly.
2021-10-22 16:02:06 +08:00
Sayan Bandyopadhyay
b9eff8b02a
fix: for issue #569 , now use the guard to turn it off ( #617 )
2021-10-22 15:57:05 +08:00
Alan Wang
d348621ca9
chore: update version and changelog ( #610 )
2021-08-25 19:15:09 +08:00
Alanscut
8e357f825b
Update version to 1.7.14
2020-09-03 17:07:49 +08:00
Alanscut
23f027139e
remove float-divide-by-zero for supporting NAN
2020-08-27 20:46:00 +08:00
Romain Lesteven
3442b36672
Fix make.sh install unwanted config files
2020-04-17 12:01:39 +02:00
Alanscut
ff0dabc72e
Update version to 1.7.13
2020-04-02 23:34:28 +08:00
Alanscut
74b2f03837
remove annoying float-equal option
2020-01-18 23:18:19 +08:00
Alanscut
51f6b4c07e
Merge branch 'master' into master
2019-12-06 15:14:26 +08:00
Alanscut
bb059dc2e1
add uninstall target in cmake
2019-10-29 15:48:11 +08:00
Alanscut
a8dbf6d878
Merge pull request #343 from myd7349/fix-install-path
...
CMake: Improve install target
2019-10-19 22:57:48 +08:00
Paweł Malowany
c9e8a68b00
Fix clang -Wfloat-equal warning
2019-06-10 11:37:03 +02:00
Max Bruckner
687b1a2fe1
Update version to 1.7.12
2019-05-16 20:03:12 +02:00
Max Bruckner
09ebae8149
Release cJSON 1.7.11
2019-04-14 23:58:02 +02:00
myd7349
9a970b9ff6
CMake: Improve install target
2019-04-14 19:41:28 +08:00
Max Bruckner
c69134d017
Release Version 1.7.10
2018-12-20 18:15:05 +01:00
Max Bruckner
f110bd2e58
Release Version 1.7.9
2018-12-16 11:17:20 +01:00
Max Bruckner
08103f048e
Release version 1.7.8
2018-09-21 19:29:42 +02:00
Zach Hindes
f25b8448e4
Support default __stdcall calling convention on tests as well
2018-09-12 15:32:30 -05:00
Zach Hindes
ad2cb5b7ea
Enable build and test on Windows
2018-09-04 14:36:21 -05:00
Max Bruckner
86234db095
Release cJSON v1.7.7
2018-05-21 22:08:21 +02:00
Max Bruckner
cbc05de76f
Release version 1.7.6
2018-04-13 12:32:30 +08:00
Max Bruckner
0e0c463491
Release version 1.7.5
2018-03-22 20:29:17 +01:00
Max Bruckner
5da9edc8b1
Release version 1.7.4
2018-03-02 19:57:36 +01:00
Max Bruckner
a559eac472
Release version 1.7.3
2018-02-07 21:16:35 +01:00
Max Bruckner
27caa364b0
Release version 1.7.2
2018-02-06 11:38:41 +01:00
Max Bruckner
f47271f455
Fix pkgconfig and installation. Thanks @zeerd for reporting
...
CMAKE_INSTALL_FULL_... needs to be used.
2018-02-06 11:24:03 +01:00
Max Bruckner
b60b5d3744
Update version to 1.7.1
2018-01-09 21:59:42 +01:00
Max Bruckner
13a2d337a8
Update version number to 1.7
2017-12-31 02:03:40 +01:00
Max Bruckner
2a087843e4
Add overrides for BUILD_SHARED_LIBS
2017-11-28 17:16:11 +01:00
yangfl
fa00278f66
Remove trailing space
2017-11-04 21:19:15 +08:00
yangfl
df1c49dba1
CMakeLists.txt: swap GNUInstallDirs and project
2017-11-04 20:14:56 +08:00
Max Bruckner
c083421f40
Release version 1.6.0
2017-10-08 23:36:41 +02:00
Max Bruckner
97d7347a6e
Merge branch 'develop'
2017-10-08 22:05:02 +02:00
casperinous
4f9e9dfc30
Fix for issue #202 , regarding the lack of implementation of the localeconv method in some SDK's.
...
A macro named `ENABLE_LOCALES` was added and an option with the same name too in the CMakeLists.txt
2017-10-08 21:55:58 +03:00
Max Bruckner
afd5d186b7
Release version 1.5.9
2017-09-08 13:54:24 +02:00
Max Bruckner
1925d1bbe5
Release version 1.5.8
2017-08-21 11:06:10 +02:00
Max Bruckner
88d66c5da9
Release version 1.5.7
2017-07-12 23:13:14 +02:00
Max Bruckner
bf0bc22a11
CMake: Add ENABLE_SAFE_STACK option
2017-07-05 10:49:32 +02:00
Max Bruckner
e174831819
CMake: Add custom compiler flags for MSVC
2017-06-28 17:28:51 +02:00
Max Bruckner
04e27dc8c5
CMake: New option BUILD_SHARED_AND_STATIC_LIBS
2017-06-28 17:28:50 +02:00
Max Bruckner
a9ce4e6bbc
Add warning -Wswitch-enum
2017-06-28 17:28:49 +02:00
Max Bruckner
eb8c0baa3b
Add warning -Wused-but-marked-unused
2017-06-28 17:28:49 +02:00
Max Bruckner
4e0c119391
Add warning -Wmissing-variable-declarations
2017-06-28 17:28:49 +02:00
Max Bruckner
38b2f40a9a
Add warning -Wunused-macro
2017-06-28 17:28:49 +02:00