ports/159276: devel/cmake: Debug builds do not work as expected

Mark Kane mark at mkproductions.org
Thu Jul 28 22:10:08 UTC 2011


>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:



More information about the freebsd-ports-bugs mailing list