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 ====================================================================== -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers