Skip to content

Commit c769bbf

Browse files
committed
Makefile: set RelWithDebInfo build type by default
1 parent 65ac417 commit c769bbf

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2014 Red Hat, Inc.
1+
# Copyright (C) 2014 - 2022 Red Hat, Inc.
22
#
33
# This file is part of cscppc.
44
#
@@ -20,11 +20,14 @@ NUM_CPU ?= $(shell getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1)
2020
CMAKE ?= cmake
2121
CTEST ?= ctest -j$(NUM_CPU)
2222

23+
CMAKE_BUILD_TYPE ?= RelWithDebInfo
24+
2325
.PHONY: all check clean distclean distcheck install
2426

2527
all:
2628
mkdir -p cscppc_build
27-
cd cscppc_build && $(CMAKE) ..
29+
cd cscppc_build && $(CMAKE) \
30+
-DCMAKE_BUILD_TYPE="$(CMAKE_BUILD_TYPE)" ..
2831
$(MAKE) -sC cscppc_build -j$(NUM_CPU)
2932

3033
check: all

0 commit comments

Comments
 (0)