keepassxc/cmake
Tobias Kortkamp ef3c2daef1 Unbreak build on FreeBSD (#3304)
* Unbreak build on FreeBSD

```
In file included from src/core/Alloc.cpp:24:
/usr/include/malloc.h:3:2: error: "<malloc.h> has been replaced by <stdlib.h>"
 ^
src/core/Alloc.cpp:65:28: error: use of undeclared identifier 'malloc_usable_size'
    ::operator delete(ptr, malloc_usable_size(ptr));
                           ^
2 errors generated.
```

Non-standard APIs like `malloc_usable_size()` [1] are defined in
`malloc_np.h` on FreeBSD, so use it instead of `malloc.h` there.

[1] https://man.freebsd.org/jemalloc(3)

* Allow Browser HostInstaller to work on FreeBSD and other OS's

* Drop custom GNUInstallDirs cmake module and use cmake's own module

It seems to be an outdated version and cmake generally provides it
itself, so there should be no need for keepassxc to provide its own
custom version.

On FreeBSD this fixes the issue that man pages were installed into
the wrong directory, i.e., `/usr/local/share/man` vs `/usr/local/man`
as per FreeBSD's current packaging policy.

Signed-off-by: Tobias Kortkamp <tobik@FreeBSD.org>
2019-06-22 08:18:47 -04:00
..
CLangFormat.cmake Performed project-wide code formatting 2019-01-28 22:38:59 -05:00
CodeCoverage.cmake Windows: use winqtdeploy instead of DeplyQt4 from CMake (#3025) 2019-04-20 18:12:00 +02:00
FindArgon2.cmake Reformat CMakeLists.txt files 2018-10-19 22:16:44 +02:00
FindGcrypt.cmake Reformat CMakeLists.txt files 2018-10-19 22:16:44 +02:00
FindLibGPGError.cmake Install needed PPA packages for deployment 2018-01-13 14:25:01 -05:00
FindQREncode.cmake Add QR code generator for TOTP export (#1167) 2018-10-19 14:42:49 -04:00
FindQuaZip.cmake Fix QuaZip find module on macOS and clean up code. 2019-05-01 18:25:32 -04:00
Findsodium.cmake keepassxc-browser 2018-01-04 21:42:20 +01:00
FindYubiKey.cmake Ensure yubikey libs are dynamic; bump to c99 2018-02-01 21:40:47 +01:00
GenerateProductVersion.cmake Cleanup CMakeFiles prior to release 2019-01-30 15:03:03 -05:00
VersionInfo.in Set windows EXE resource properties, resolves #329 2017-02-20 00:33:11 +01:00
VersionResource.rc Set windows EXE resource properties, resolves #329 2017-02-20 00:33:11 +01:00