Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jul 2011 22:07:02 GMT
From:      Mark Kane <mark@mkproductions.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/159276: devel/cmake: Debug builds do not work as expected
Message-ID:  <201107282207.p6SM72Wn092583@red.freebsd.org>
Resent-Message-ID: <201107282210.p6SMA866056240@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         159276
>Category:       ports
>Synopsis:       devel/cmake: Debug builds do not work as expected
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 28 22:10:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Mark Kane
>Release:        FreeBSD 8.2-RELEASE amd64
>Organization:
>Environment:
>Description:
Applications that use cmake and the debug build type (CMAKE_BUILD_TYPE=DEBUG) are not built properly when using cmake outside of the ports system. This appears to be due to the following patch:

http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/cmake/files/patch-Modules_Compiler_GNU.cmake?rev=1.1

With this patch, "-g" is not added to the debug build as is normally expected. Setting CFLAGS/CXXFLAGS manually in the environment does seem to work as the commit message suggests, however this is not required when using the upstream version of cmake and can cause confusion when the predefined debug build type does not work as expected.

Thanks in advance.
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107282207.p6SM72Wn092583>