[cmake-developers] [CMake 0016052]: Extra space on NDEBUG in release builds causes flag to be ignored
Mantis Bug Tracker
mantis at public.kitware.com
Thu Apr 7 10:36:26 EDT 2016
The following issue has been SUBMITTED.
======================================================================
http://kwwidgets.org/Bug/view.php?id=16052
======================================================================
Reported By: Stephen Dunn
Assigned To:
======================================================================
Project: CMake
Issue ID: 16052
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2016-04-07 10:36 EDT
Last Modified: 2016-04-07 10:36 EDT
======================================================================
Summary: Extra space on NDEBUG in release builds causes flag
to be ignored
Description:
This bug was previously reported, but incorrectly marked as resolved here:
http://kwwidgets.org/Bug/view.php?id=1749
All Release mode configs accidentally append a space after /D in Visual Studio
2015 (14) which causes the flag NDEBUG to be ignored. It should be: /DNDEBUG,
not /D NDEBUG which is invalid syntax. Other /D flags are defined correctly.
I check for the presence of this var, and its absence in Release mode causes
undefined behavior.
Steps to Reproduce:
Generate any project with Release mode builds.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2016-04-07 10:36 Stephen Dunn New Issue
2016-04-07 10:36 Stephen Dunn File Added: cmake-bug.png
======================================================================
More information about the cmake-developers
mailing list