opendcp
opendcp copied to clipboard
cmake config should respect CMAKE_BUILD_TYPE
Product Version: git HEAD
GUI or CLI: both
Operating system: Debian Wheezy 64
What steps will reproduce the problem?
1. Create new build directory
2. From this directory run "cmake -DCMAKE_BUILD_TYPE=Debug /opendcp/home"
What is the expected output?
A build environment where all CXX_FLAGS are populated from
CMAKE_CXX_FLAGS_DEBUG, C_FLAGS from CMAKE_C_FLAGS_DEBUG, etc
What is actual output?
All flags are populated from CMAKE_<XXX>_FLAGS_RELEASE
Please provide any additional information below.
It'd be also nice for debbuging purposes to include directly a -O0 flag to CXX
and C flags for debug once is fixed.
Original issue reported on code.google.com by [email protected]
on 26 Apr 2014 at 6:25
You can use the flag -DENABLE_DEBUG=ON. I forget the reason I didn't use
-DCMAKE_BUILD_TYPE, but I think it had to do with how it cached the values
which was causing problems during cross-compiling. I'll leave this as an
enhancement and re-visit it when I get a chance.
Original comment by [email protected]
on 28 Apr 2014 at 1:09
- Changed state: Accepted
- Added labels: Type-Enhancement
- Removed labels: Type-Defect