David Adam
fb53a96a1c
Add configure-time check for std::make_unique
...
Fixes the build on Clang 6 and closes #4685 .
2018-01-31 13:43:05 +08:00
David Adam
f135c53196
[cmake] move all CheckFunctionExists to CheckCXXSymbolExists
...
CheckFunctionExists checks for C linkage only, and recommends the use of
CheckSymbolExists in the documentation. This improves the detection of
C++ features, as opposed to C features.
2018-01-30 22:28:04 +08:00
David Adam
7faa6e773f
cmake: add SED to build_lexicon_filter
2017-11-28 21:37:42 +08:00
David Adam
ce46c80492
cmake: restore check for fixed-args tparm ("Solaris tparm kludge")
2017-11-22 18:58:27 +08:00
David Adam
64194d02fc
cmake: correct configure check for _nl_msg_cat_cntr
2017-11-17 16:21:56 +08:00
David Adam
32714021f5
cmake: add gettext support
2017-11-17 16:21:56 +08:00
David Adam
7e24c14f8c
cmake: print feature summary
2017-11-17 16:21:56 +08:00
David Adam
8543a4061e
cmake: fix check for /proc/self/stat
...
Using the result of the exists test directly always passes.
2017-11-17 16:21:56 +08:00
David Adam
af93db668c
cmake: fix check for sys/sysctl.h on FreeBSD
2017-11-17 16:21:56 +08:00
David Adam
f5209deacc
cmake: update CheckIncludeFiles to enable C++ checks
2017-11-17 16:21:56 +08:00
David Adam
2f289ce097
cmake: drop unneeded checks
...
Much cruft brought across from autoconf is removed.
2017-11-17 16:21:56 +08:00
David Adam
57bfca17dc
cmake: make WINSIZE checks work
2017-11-17 16:21:56 +08:00
David Adam
a8938bcb4d
cmake: check for stat struct items correctly
2017-11-17 16:21:56 +08:00
David Adam
68da7ab822
cmake: use C++ rather than C checks for all checks
...
Disables C language for fish project to catch errors.
2017-11-17 16:21:56 +08:00
David Adam
8f7d68ee3e
cmake: use correct syntax for CheckStructHasMember
...
Correctly detect the dirent member d_type on systems that have it.
2017-11-17 16:21:56 +08:00
David Adam
396faebc08
Move CMakeFiles to cmake
...
Makes in-tree (ie `cmake .`) builds work.
2017-11-17 16:21:55 +08:00