CMake defines -DNDEBUG when BUILD_TYPE is set to RELEASE by default however default flags gets dropped when CMAKE_C_FLAGS_RELEASE and CMAKE_CXX_FLAGS_RELEASE are (re)defined. This causes some projects to build with debugging by default which needs to be disabled manually if they do not set -DNDEBUG manually either in ports Makefile and/or in CMake's Makefile. To follow upstream add -DNDEBUG to our RELEASE flags.
Details
Details
- Reviewers
tcberner - Group Reviewers
kde - Commits
- R11:3c5189a0fd4c: Mk/Uses/cmake.mk: Define -DNDEBUG when BUILD_TYPE is set to RELEASE
exp-run?
Diff Detail
Diff Detail
- Repository
- R11 FreeBSD ports repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
@arrowd
Anything else needed or is it accepted as-is?
Is exp-run needed for this change?
Best regards,
Daniel