package/pkg-cmake.mk: move CMAKE_BUILD_TYPE definition into toolchainfile.cmake
commita471150a7b773b40af5585fa0c49275549014791
authorSamuel Martin <s.martin49@gmail.com>
Sun, 16 Oct 2016 11:12:38 +0000 (16 13:12 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 22 Oct 2016 14:15:32 +0000 (22 16:15 +0200)
treeeda0ec164130960d148c5584ce542fbe4a306ad3
parent104bb29e0490bfb487e2e665448dd3ca07fcc2b5
package/pkg-cmake.mk: move CMAKE_BUILD_TYPE definition into toolchainfile.cmake

The chosen CMAKE_BUILD_TYPE encodes an option of the Buildroot
configuration, so it makes more sense to save it in the
toolchainfile.cmake than to pass it during configure.

It is still possible to override the build type on the cmake
command line.

Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
[Thomas: reword description in the CHANGES file.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
CHANGES
package/pkg-cmake.mk
support/misc/toolchainfile.cmake.in