]>
granicus.if.org Git - check/log
Branden Archer [Sat, 26 Oct 2019 18:48:14 +0000 (11:48 -0700)]
Merge pull request #231 from nmeum/makeinfo
configure: check for makeinfo instead of tex for documentation
Sören Tempel [Fri, 25 Oct 2019 15:35:48 +0000 (17:35 +0200)]
configure: check for makeinfo instead of tex for documentation
While upgrading the Alpine Linux check package to 0.13.0 I noticed that
documentation files were no longer installed, even though they were
installed successfully previously.
After investigating this for a while I noticed that this seems to be due
to an incorrect fix for #206. In #206 the issue reporter complains that
the build fails if texinfo is not installed, the fix in #212 checks for
tex instead of makeinfo though. makeinfo is the command used by the
implicit gnu make rule to generate info pages.
Branden Archer [Fri, 25 Oct 2019 06:37:00 +0000 (23:37 -0700)]
Merge pull request #225 from mikkoi/fix-c-standard-to-c99
Fix c standard to c99
Branden Archer [Fri, 25 Oct 2019 05:14:57 +0000 (22:14 -0700)]
Merge branch 'master' into fix-c-standard-to-c99
Branden Archer [Wed, 23 Oct 2019 14:47:49 +0000 (07:47 -0700)]
Merge pull request #230 from libcheck/post-0.13
Update after 0.13
Branden Archer [Tue, 22 Oct 2019 05:09:17 +0000 (22:09 -0700)]
Fix typo in NEWS
Branden Archer [Tue, 22 Oct 2019 05:08:14 +0000 (22:08 -0700)]
Restore development header in NEWS
Branden Archer [Tue, 22 Oct 2019 05:06:56 +0000 (22:06 -0700)]
Update index.html for 0.13.0 release
Branden Archer [Mon, 21 Oct 2019 14:46:54 +0000 (07:46 -0700)]
Merge pull request #224 from libcheck/pre-v0.13
Update NEWS for v0.13
Mikko Johannes Koivunalho [Sun, 20 Oct 2019 09:41:27 +0000 (11:41 +0200)]
Change C++ style comments to C style
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sun, 20 Oct 2019 09:46:33 +0000 (11:46 +0200)]
Add missing include for waitpid()
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sun, 20 Oct 2019 09:26:04 +0000 (11:26 +0200)]
Fix required C standard from C90 to C99
We are using C99 features, such as anonymous variadic macros and
mixed declarations and code.
Besides, we are using POSIX extensions (fork, etc.), so there is
(probably?) no point in forcing the use of the old ANSI C89 / ISO C90.
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Branden Archer [Mon, 21 Oct 2019 03:06:04 +0000 (20:06 -0700)]
Merge branch 'master' into pre-v0.13
Branden Archer [Mon, 21 Oct 2019 03:05:43 +0000 (20:05 -0700)]
Update hash and date for 0.13.0 release in NEWS
Branden Archer [Mon, 21 Oct 2019 03:04:38 +0000 (20:04 -0700)]
Update NEWS with additional changes
Branden Archer [Mon, 21 Oct 2019 03:04:12 +0000 (20:04 -0700)]
Merge pull request #228 from mikkoi/fix-forced-build-type
Remove the forcing of the CMake build type
Branden Archer [Sun, 20 Oct 2019 23:38:37 +0000 (16:38 -0700)]
Merge branch 'master' into fix-forced-build-type
Branden Archer [Sun, 20 Oct 2019 23:38:26 +0000 (16:38 -0700)]
Merge pull request #227 from mikkoi/support-cmake-package-registry
Support CMake package registry
Branden Archer [Sun, 20 Oct 2019 15:35:59 +0000 (08:35 -0700)]
Merge branch 'master' into support-cmake-package-registry
Branden Archer [Sun, 20 Oct 2019 15:35:01 +0000 (08:35 -0700)]
Merge pull request #226 from mikkoi/fix-wrong-library-filename
Fix wrong library filename (in Windows)
Mikko Johannes Koivunalho [Sat, 19 Oct 2019 23:20:21 +0000 (01:20 +0200)]
Remove the forcing of the CMake build type
* Do not force the build type to be Debug.
* This actually didn't work because the variable was not declated CACHE.
* Append /cmake dir to CMAKE_MODULE_PATH instead of replacing the
previous content.
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Branden Archer [Sun, 20 Oct 2019 04:46:46 +0000 (21:46 -0700)]
Update NEWS
Mikko Johannes Koivunalho [Sun, 20 Oct 2019 00:27:38 +0000 (02:27 +0200)]
Add header check_stdint.h to public headers
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sun, 20 Oct 2019 00:24:02 +0000 (02:24 +0200)]
Add support for CMake User Package Registry
The registries are especially useful to help projects find packages
in non-standard install locations or directly in their own build trees.
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sat, 19 Oct 2019 22:59:21 +0000 (00:59 +0200)]
Correct wrong Win dynamic library name
Change from checkStatic to checkDynamic.
Was erroneously "checkStatic".
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sat, 19 Oct 2019 22:57:38 +0000 (00:57 +0200)]
Add comments about library creation
Why we create both static and shared type of library?
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Branden Archer [Mon, 16 Sep 2019 04:03:18 +0000 (21:03 -0700)]
Merge pull request #221 from mikkoi/more-todo
Add more items to TODO
Branden Archer [Sun, 15 Sep 2019 17:37:12 +0000 (10:37 -0700)]
Merge branch 'master' into more-todo
Branden Archer [Sun, 15 Sep 2019 17:36:26 +0000 (10:36 -0700)]
Merge pull request #220 from mikkoi/so-for-visual-studio
Shared Library for Visual Studio
Mikko Johannes Koivunalho [Sat, 14 Sep 2019 20:55:35 +0000 (22:55 +0200)]
Add more items to TODO
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sat, 14 Sep 2019 19:16:50 +0000 (21:16 +0200)]
Remove unneeded include()
Already included in the project root CMakeLists.txt
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sat, 14 Sep 2019 19:06:12 +0000 (21:06 +0200)]
Add option ENABLE_MEMORY_LEAKING_TESTS
Removing the set(MEMORY_LEAKING_TESTS_ENABLED) which
had no effect on the build.
The new CMake build option uses verb-first structure
(do something on something: e.g. ENABLE/BUILD) like other build
options. The definition itself is "MEMORY_LEAKING_TESTS_ENABLED"
and only enabled in the tests/ subdirectory.
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sat, 14 Sep 2019 17:31:40 +0000 (19:31 +0200)]
Correct indentation
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sat, 14 Sep 2019 16:59:53 +0000 (18:59 +0200)]
Truncate PROJECT_VERSION to three components
For compatibility with the Autotools build which only
uses three parts: major, minor and patch.
CMake allows four components in version numbering:
major, minor, patch and tweak.
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sat, 14 Sep 2019 16:18:45 +0000 (18:18 +0200)]
Add variable VERSION to pkgconfig/check.pc configuration
File check.pc.in is shared with Autotools and CMake build.
File uses variable 'VERSION'.
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sat, 14 Sep 2019 16:15:48 +0000 (18:15 +0200)]
Remove the needless resetting of PROJECT_VERSION
Variable PROJECT_VERSION was not yet in use when check_stdint.h configuration was updated.
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sun, 23 Jun 2019 08:50:22 +0000 (10:50 +0200)]
Add target shared library to CMake build
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Fri, 13 Sep 2019 20:31:04 +0000 (22:31 +0200)]
Add better explanation for '#define CK_DLL_EXP'
Mikko Johannes Koivunalho [Fri, 13 Sep 2019 20:12:48 +0000 (22:12 +0200)]
Remove MSVC specific dllexport
Target check is specifically a static library
Mikko Johannes Koivunalho [Sun, 23 Jun 2019 14:50:51 +0000 (16:50 +0200)]
Change definition CK_DLL_EXP from global to target specific
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sun, 8 Sep 2019 18:58:30 +0000 (20:58 +0200)]
Add libcompat code directly to libcheck
We have tried to statically link the built libcompat into built libcheck
in CMake without success. With autotools (libtool et.al.) this is
most likely very easy but there is no support on Windows.
So instead of building libcompat separately
we incorporate the necessary parts of libcompat code
directly into libcheck when building libcheck.
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sun, 8 Sep 2019 14:48:32 +0000 (16:48 +0200)]
Start using GNUInstallDirs in every CMake install()
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Branden Archer [Mon, 9 Sep 2019 01:25:13 +0000 (18:25 -0700)]
Merge pull request #209 from mikkoi/fix-small-issues-2
Fix small issues 2
Branden Archer [Sun, 8 Sep 2019 18:09:23 +0000 (11:09 -0700)]
Merge branch 'master' into fix-small-issues-2
Mikko Johannes Koivunalho [Sun, 8 Sep 2019 07:51:44 +0000 (09:51 +0200)]
Improve check_stdint.h creation in CMake
Will not convert m4/ax_create_stdint_h.m4 to CMake.
Make the resulting check_stdint.h similar to the old one
(as much as is possible).
GNU Autotools build is untouched. It continues to use m4 macro
and generates check_stdint.h from scratch.
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Branden Archer [Sun, 8 Sep 2019 16:56:20 +0000 (09:56 -0700)]
Merge pull request #212 from mikkoi/is-makeinfo-required
configure: optional build documentation
Mikko Johannes Koivunalho [Sun, 8 Sep 2019 09:54:31 +0000 (11:54 +0200)]
Add param @ONLY to CMake configure_file()
Restrict variable replacement to references of the form @VAR@.
This is useful for configuring scripts that also use ${VAR} syntax.
Adding @ONLY is precautionary action to prevent future bugs.
Attn. cmake/config.h.in contains ${VAR} in #cmakedefine clauses!
How to use CMake variable substitution.
Wrong:
#if @HAVE_FORK@
[..]
#endif
Because this will result as:
#if 1
[..]
#endif
Better:
/* Imported CMake variables created during build. */
#cmakedefine HAVE_FORK 1
#ifdef HAVE_FORK
[..]
#endif
Because this will result as:
/* Imported CMake variables created during build. */
#define HAVE_FORK 1
#ifdef HAVE_FORK
[..]
#endif
Or:
/* Imported CMake variables created during build. */
/* #undef HAVE_FORK */
[..]
This is more readable. Now we know which decision actually
was taken.
If you need to pass the parameter to the definition,
it is just as easy:
/* Imported CMake variables created during build. */
#cmakedefine CORRECT_SIZE @CORRECT_SIZE@
#if CORRECT_SIZE >= 20
[..]
#endif
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Mon, 2 Sep 2019 20:34:49 +0000 (22:34 +0200)]
Remove non-CMake style option CHECK_ENABLE_TESTS
It is a CMake best practice to include file 'CTest'
in the project main file and then use option
'BUILD_TESTING' (defined in 'CTest') to enable or disable
building the tests. BUILD_TESTING is ON by default.
https://cmake.org/cmake/help/v3.9/module/CTest.html?highlight=build_testing
https://cmake.org/cmake/help/v3.9/command/add_test.html?highlight=build_testing
Option CHECK_ENABLE_TESTS is deprecated.
Because it is on by default, deprecation warning is only shown
to user when user explicitly turns CHECK_ENABLE_TESTS off.
Suggesting to remove the option by release 0.15.0.
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sun, 1 Sep 2019 18:44:42 +0000 (20:44 +0200)]
Fix missing macro undefinition
If we don't undefine the macro, it will enter the user's namespace.
This macro is only for our internal use.
Otherwise it would have the "CK_" prefix.
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Mon, 2 Sep 2019 16:57:59 +0000 (18:57 +0200)]
Add pkgconfig/check.pc file generation to CMake
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Fri, 2 Aug 2019 05:08:25 +0000 (07:08 +0200)]
Reindent CMake file to 2 chars indentation
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Fri, 2 Aug 2019 04:15:19 +0000 (06:15 +0200)]
Add missing header file when HAVE_FORK
Function _exit(int) is included in unistd.h. Also fork() is here.
Functions exit(int) (C89) and _Exit(int) (C99) are in stdlib.h.
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sat, 8 Jun 2019 13:40:14 +0000 (15:40 +0200)]
Add HAVE_UNISTD_H to CMake and config.h.in
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sun, 23 Jun 2019 05:10:09 +0000 (07:10 +0200)]
Add 'cmake --version' to Travis script
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Branden Archer [Tue, 3 Sep 2019 00:06:13 +0000 (17:06 -0700)]
Merge branch 'master' into is-makeinfo-required
Branden Archer [Tue, 3 Sep 2019 00:05:58 +0000 (17:05 -0700)]
Merge pull request #219 from mikkoi/fix-macro-definition
Fix missing macro undefinition
Mikko Johannes Koivunalho [Sat, 22 Jun 2019 16:49:37 +0000 (18:49 +0200)]
Add alarm.c to the build
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sat, 8 Jun 2019 20:00:53 +0000 (22:00 +0200)]
Remove support for old CMake version
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sat, 8 Jun 2019 19:55:05 +0000 (21:55 +0200)]
Add command 'cmake --version' to appveyor builds
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sun, 9 Jun 2019 18:35:06 +0000 (20:35 +0200)]
Create variables PROJECT_VERSION_*
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sat, 8 Jun 2019 19:47:59 +0000 (21:47 +0200)]
Add tags DESCRIPTION and LANGUAGES to project()
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sat, 8 Jun 2019 19:45:40 +0000 (21:45 +0200)]
Raise minimum CMake version to 3.9
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sun, 1 Sep 2019 18:44:42 +0000 (20:44 +0200)]
Fix missing macro undefinition
If we don't undefine the macro, it will enter the user's namespace.
This macro is only for our internal use.
Otherwise it would have the "CK_" prefix.
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Branden Archer [Sun, 1 Sep 2019 01:43:15 +0000 (18:43 -0700)]
Merge branch 'master' into is-makeinfo-required
Branden Archer [Sun, 1 Sep 2019 01:42:11 +0000 (18:42 -0700)]
Merge pull request #218 from mikkoi/improve-gcc-version-at-least
Improve macro GCC_VERSION_AT_LEAST(major, minor)
Branden Archer [Sat, 31 Aug 2019 07:02:06 +0000 (00:02 -0700)]
Merge branch 'master' into improve-gcc-version-at-least
Branden Archer [Sat, 31 Aug 2019 07:01:38 +0000 (00:01 -0700)]
Merge pull request #213 from mikkoi/fix-small-issues-3
Fix some issues that came up with Travis updating to Clang 7
Mikko Johannes Koivunalho [Fri, 30 Aug 2019 13:56:23 +0000 (15:56 +0200)]
Improve macro GCC_VERSION_AT_LEAST(major, minor)
Use also the patch number. Arguments: major, minor, pathch.
Issue #214 https://github.com/libcheck/check/issues/214
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Tue, 20 Aug 2019 08:44:12 +0000 (10:44 +0200)]
Add issue #206 to NEWS
https://github.com/libcheck/check/issues/206
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Thu, 29 Aug 2019 14:57:52 +0000 (16:57 +0200)]
configure: optional build documentation, travis
Tweak Travis build to support the new `./configure` switch.
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Thu, 29 Aug 2019 14:52:52 +0000 (16:52 +0200)]
configure: optional build documentation, output
Add more output when running `./configure`.
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Branden Archer [Mon, 19 Aug 2019 18:32:35 +0000 (20:32 +0200)]
configure: optional build documentation
Fix issue https://github.com/libcheck/check/issues/206
Applied an uncommitted patch by Branden Archer.
https://sourceforge.net/p/check/bugs/101/
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Wed, 28 Aug 2019 12:08:09 +0000 (14:08 +0200)]
Fix indentation
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Wed, 28 Aug 2019 12:07:39 +0000 (14:07 +0200)]
Remove useless if clause.
warning: comparison of constant -1 with expression of type
'clockid_t' is always false [-Wtautological-constant-out-of-range-compare]
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Wed, 28 Aug 2019 11:12:22 +0000 (13:12 +0200)]
Add more info to AUTHORS
Mikko Johannes Koivunalho [Mon, 19 Aug 2019 17:11:04 +0000 (19:11 +0200)]
Initialize buffer to ensure it is empty
snprintf.c:918:31: warning: The left operand of '!=' is a garbage value
for (strln = 0; value[strln] != '\0' &&
~~~~~~~~~~~~ ^
Move "#include <string.h>" from testing related code to main code
because memset(3) depends on <string.h>.
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Wed, 14 Aug 2019 08:56:25 +0000 (10:56 +0200)]
Fix declaration of extern int errno
if HAVE_VSNPRINTF is declared, <errno.h> is not included.
So we need to declare it ourselves.
Error (Travis SCAN_BUILD=YES):
libtool: compile: /usr/local/clang-7.0.0/bin/../libexec/ccc-analyzer -DHAVE_CONFIG_H -I. -I.. -g -O2 -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wno-variadic-macros -Wimport -Wfatal-errors -Wformat=2 -Winit-self -Wmissing-include-dirs -Wswitch-default -Wunknown-pragmas -MT snprintf.lo -MD -MP -MF .deps/snprintf.Tpo -c snprintf.c -fPIC -DPIC -o .libs/snprintf.o
764snprintf.c:487:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
extern int errno;
^
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@inoviagroup.se>
Mikko Johannes Koivunalho [Tue, 13 Aug 2019 18:57:54 +0000 (20:57 +0200)]
Fix indentation
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Tue, 13 Aug 2019 18:53:46 +0000 (20:53 +0200)]
Fix warnings by flag -Wswitch-default
E.g.
check_print.c:114:13: warning: switch missing default case [-Wswitch-default]
switch (next)
^
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Branden Archer [Sat, 13 Jul 2019 14:49:09 +0000 (07:49 -0700)]
Merge pull request #204 from mikkoi/add-checkmk-to-cmake
Add checkmk to cmake
Mikko Johannes Koivunalho [Sun, 9 Jun 2019 09:22:07 +0000 (11:22 +0200)]
Make checkmk installable
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sat, 6 Jul 2019 09:25:57 +0000 (11:25 +0200)]
Add issue #196 to NEWS
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sat, 6 Jul 2019 08:19:01 +0000 (10:19 +0200)]
Add Mikko Koivunalho to AUTHORS (contributor)
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sat, 6 Jul 2019 08:17:49 +0000 (10:17 +0200)]
Increase version to 0.13.0
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Branden Archer [Mon, 17 Jun 2019 04:56:33 +0000 (21:56 -0700)]
Merge pull request #198 from mikkoi/fix-cmake-project-name
Fix bug with CMake project variable
Mikko Johannes Koivunalho [Sat, 8 Jun 2019 11:54:32 +0000 (13:54 +0200)]
Fix bug with CMake project variable
"
I tried to embed the check source code into my project in a "3rdparty" folder. Turns out that the build fails because of the usage of CMAKE_PROJECT_NAME instead of PROJECT_NAME in the check CMakeLists.txt
CMAKE_PROJECT_NAME is the name of the topmost project, that is in my case my own project.
Changing to PROJECT_NAME worked fine.
"
https://github.com/libcheck/check/issues/194
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Branden Archer [Tue, 4 Jun 2019 15:07:15 +0000 (08:07 -0700)]
Merge pull request #189 from mikkoi/improve-test_mem_leaks
Fix script to work from any path and to take argument
Branden Archer [Tue, 4 Jun 2019 00:01:11 +0000 (17:01 -0700)]
Merge branch 'master' into improve-test_mem_leaks
Branden Archer [Mon, 3 Jun 2019 23:57:45 +0000 (16:57 -0700)]
Merge pull request #193 from mikkoi/fix-todo-indentation
Realign TODO indentations
Mikko Koivunalho [Fri, 31 May 2019 08:30:17 +0000 (11:30 +0300)]
Fix script to work from any path and to take argument
Signed-off-by: Mikko Koivunalho <mikko.koivunalho@iki.fi>
Branden Archer [Mon, 3 Jun 2019 04:00:52 +0000 (21:00 -0700)]
Merge branch 'master' into fix-todo-indentation
Branden Archer [Mon, 3 Jun 2019 03:58:53 +0000 (20:58 -0700)]
Merge pull request #191 from mikkoi/fix-signed-comparison
Change type from signed int to size_t
Branden Archer [Mon, 3 Jun 2019 00:34:17 +0000 (17:34 -0700)]
Merge branch 'master' into fix-signed-comparison
Branden Archer [Mon, 3 Jun 2019 00:33:10 +0000 (17:33 -0700)]
Merge pull request #190 from mikkoi/fix-abbreviations
Eliminate abbreviations like nf for number_failed
Branden Archer [Sun, 2 Jun 2019 22:07:50 +0000 (15:07 -0700)]
Merge branch 'master' into fix-abbreviations
Branden Archer [Sun, 2 Jun 2019 22:06:41 +0000 (15:06 -0700)]
Merge pull request #192 from mikkoi/fix-function-definition
Fix int main() function to "int main(void)"
Branden Archer [Sun, 2 Jun 2019 17:27:36 +0000 (10:27 -0700)]
Merge branch 'master' into fix-function-definition
Branden Archer [Sat, 1 Jun 2019 19:13:17 +0000 (12:13 -0700)]
Merge pull request #185 from mikkoi/improve-import
Improve import to CMake projects
Mikko Johannes Koivunalho [Fri, 31 May 2019 21:00:20 +0000 (23:00 +0200)]
Realign TODO indentations
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Fri, 31 May 2019 20:02:56 +0000 (22:02 +0200)]
Fix int main() function to "int main(void)"
check_mem_leaks.c:35:5: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
int main ()
^~~~