diff --git a/ports/_resources/port1.0/group/cmake-1.0.tcl b/ports/_resources/port1.0/group/cmake-1.0.tcl
index 430b9a2..fbbcbc4 100644
a
|
b
|
configure.universal_args-delete --disable-dependency-tracking |
138 | 138 | variant debug description "Enable debug binaries" { |
139 | 139 | configure.args-delete -DCMAKE_BUILD_TYPE=Release |
140 | 140 | configure.args-append -DCMAKE_BUILD_TYPE=Debug |
| 141 | # Consider the configure.cflags and configure.cxxflags for Debug builds. |
| 142 | # Attention, they contain configure.optflags by default! |
| 143 | if {${configure.cflags} != ""} { |
| 144 | configure.args-append -DCMAKE_C_FLAGS_DEBUG="-g ${configure.cflags}" |
| 145 | } |
| 146 | if {${configure.cxxflags} != ""} { |
| 147 | configure.args-append -DCMAKE_CXX_FLAGS_DEBUG="-g ${configure.cxxflags}" |
| 148 | } |
141 | 149 | } |
142 | 150 | |
143 | 151 | # cmake doesn't like --enable-debug, so in case a portfile sets |