Eric Haszlakiewicz
7e608c5728
Issue #359 : Use consistent spacing in CMakeLists.txt
8 years ago
Haffon
837a249f01
set JSON_C_HEADERS full file name
8 years ago
Haffon
95e174e2fb
Merge pull request #1 from json-c/master
want to merge the original repository
8 years ago
Haffon
3141c3976b
1.make it can been compiled with Visual Studio 2010
2.replace json_object_get/put API with json_object_retain/release, as they operate the reference counter, and confused with array_list_get/put_idx.
3.replace array_list_get/put_idx API with array_list_get/insert to make them more clear to use.
8 years ago
topilski
0a99e7a5c1
Fix Mingw build
8 years ago
Eric Haszlakiewicz
7fd74fc7a3
Merge pull request #312 from Tailmon/master
Fix CMake Build process improved for MinGW and MSYS2
8 years ago
Alexandru Ardelean
8f6ecbf37b
build,cmake: set C_STANDARD 99 property to libjson-c-static
Apply the same property as to json-c.
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
8 years ago
Alexandru Ardelean
4fb2eefac2
build,cmake: rename libjson-c-static.a to libjson-c.a
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
8 years ago
Alexandru Ardelean
4b5e39c89c
build,cmake: generate both static and shared libjson
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
8 years ago
Alexandru Ardelean
cfbbb23141
build,cmake: add _GNU_SOURCE to CFLAGS
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
8 years ago
Pablo Sanabria
2cda677d06
Fix CMake Build process for MinGW and MSYS2
This fix includes some fixes for config.h.win32 that was generating
some compiling errors on MinGW64 and also fix CMakeLists.txt in order to
give better support to MinGW and MSYS2
8 years ago
Alexandru Ardelean
47f32a76ef
vasprintf_compat.h: spin-off this compat header ; use math_compat.h as template
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
9 years ago
Alexandru Ardelean
8cb86a583a
strdup_compat.h: re-spin this compat header ; use math_compat.h as template
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
9 years ago
Emmanuele Bassi
7601f20d70
Revert "compat/strdup.h: move common compat check for strdup() to own file"
This reverts commit aaba8c1080
.
This commit breaks builddir != srcdir build, but, more importantly, it
also adds a dependency on a header, "config.h", which is not installed
and it's supposed to be private — since it's generated at configuration
time and it's not meant to be used by projects compiling against a
library.
9 years ago
Alexandru Ardelean
0e91183300
json_pointer: add first revision
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
9 years ago
Alexandru Ardelean
aaba8c1080
compat/strdup.h: move common compat check for strdup() to own file
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
9 years ago
Steve Gerbino
c5c93724fe
Changed CMake variables and adding output for debugging
9 years ago
Steve Gerbino
0c749d96ea
Target C99 standards to get rid of warnings
9 years ago
Steve Gerbino
928858457b
Modified the execute_process commands
9 years ago
Steve Gerbino
bdead39f63
Changed PROJECT_SOURCE_DIR to CMAKE_CURRENT_SOURCE_DIR to fix building when used as external project
9 years ago
Steve Gerbino
702b42eaf3
Modified CMakeLists.txt to use autotools to generate configuration for Unix systems
9 years ago
Steve Gerbino
43afcc0d99
Lowered CMake required version so that Travis CI is able to build, moved include folder to include/json-c to match the behavior of autotools
9 years ago
Steve Gerbino
fe941a26a3
Trailing slash seems necessary in the install command to get contents
9 years ago
Steve Gerbino
ab7c09dc8e
Forget DESTINATION in CMake install command
9 years ago
Steve Gerbino
34b4a490b1
We need to also install the generated configuration files
9 years ago
Steve Gerbino
989e39d995
Fixed typo in CMakeList.txt FILES_MATCHING
9 years ago
Steve Gerbino
e2ee223dc2
Added install instructions for CMake
9 years ago
Steve Gerbino
69f018c49e
Resolves json-c/json-c#271 by adding MacOS configuration files and modifies CMakeLists.txt to use them
9 years ago
Randy Armstrong
c5b5a984cd
Add Cmakefile
9 years ago