Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 221049 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/eclass/cmake-utils.eclass (-3 / +4 lines)
Lines 15-21 Link Here
15
15
16
# Original author: Zephyrus (zephyrus@mirach.it)
16
# Original author: Zephyrus (zephyrus@mirach.it)
17
17
18
inherit toolchain-funcs multilib
18
inherit flag-o-matic toolchain-funcs multilib
19
19
20
DESCRIPTION="Based on the ${ECLASS} eclass"
20
DESCRIPTION="Based on the ${ECLASS} eclass"
21
21
Lines 85-90 Link Here
85
cmake-utils_src_configure() {
85
cmake-utils_src_configure() {
86
	debug-print-function $FUNCNAME $*
86
	debug-print-function $FUNCNAME $*
87
87
88
	if ! use debug; then
89
		append-flags -DNDEBUG
90
	fi
88
	if [[ -n "${CMAKE_IN_SOURCE_BUILD}" ]]; then
91
	if [[ -n "${CMAKE_IN_SOURCE_BUILD}" ]]; then
89
		cmake-utils_src_configurein
92
		cmake-utils_src_configurein
90
	else
93
	else
Lines 143-150 Link Here
143
	local tmp_libdir=$(get_libdir)
146
	local tmp_libdir=$(get_libdir)
144
	if has debug ${IUSE//+} && use debug; then
147
	if has debug ${IUSE//+} && use debug; then
145
		echo -DCMAKE_BUILD_TYPE=Debug
148
		echo -DCMAKE_BUILD_TYPE=Debug
146
	else
147
		echo -DCMAKE_BUILD_TYPE=Release
148
	fi
149
	fi
149
	echo -DCMAKE_C_COMPILER=$(type -P $(tc-getCC))
150
	echo -DCMAKE_C_COMPILER=$(type -P $(tc-getCC))
150
	echo -DCMAKE_CXX_COMPILER=$(type -P $(tc-getCXX))
151
	echo -DCMAKE_CXX_COMPILER=$(type -P $(tc-getCXX))

Return to bug 221049