The script checks if -DCMAKE_BUILD_TYPE is passed in command line and if
it is not passed, passes -DCMAKE_BUILD_TYPE=Release. So now other build
types are supported, just pass -DCMAKE_BUILD_TYPE=<desired-type> to the
script $(TARGET)-cmake.
Fix https://github.com/mxe/mxe/issues/1697
- move cmake configuration from mxe-conf to cmake-conf
- replace `echo` with templates for readability and maintenance
- allow packages to set other dep files
- set CMAKE_POLICY_DEFAULT_CMPNNNN in wrapper since
`cmake_minimum_required` or `cmake_policy` can't be set in
toolchain (closes#971)
The following script was applied:
sed ':a;/part of MXE.$/{N;s/\n//;ba}' -i $(git grep -l 'part of MXE')
sed 's/\(part of MXE\).*\(See index.html\)/\1. \2/' -i \
$(git grep -l 'part of MXE.*See index.html')
before='This file is part of MXE. See index.html for further information.'
after='This file is part of MXE. See LICENSE.md for licensing information.'
sed "s/$before/$after/" -i $(git grep -l 'part of MXE')
Then git grep 'index.html for further information' revealed two other files.
One of them was patched manually (patch.mk). Makefile has text
"See index.html for further information" unrelated to licensing.
See https://github.com/mxe/mxe/issues/1500#issuecomment-241340792
These are needed by cmake projects using openssl. Originally these
files were installed by openssl, but it makes more sense just to
include them in MXE's repo.
The files come from cmake version 3.0.2.
FindOpenSSL.cmake includes a compatibility fix for openssl 1.0.2
taken from https://github.com/Homebrew/homebrew/pull/36361/files.
Reverts:
01af85c openssl: really fix the cmake problem
4259259 openssl: supply updated FindOpenSSL.cmake