[Bf-committers] Minor CMake issue with intern/opennl

Nicholas Bishop nicholasbishop at gmail.com
Tue Apr 17 05:23:37 CEST 2012


The CMakeLists.txt in intern/opennl has a line to remove the DEBUG
define, since it spews out too many console prints when UV unwrapping.
That line isn't working for me, however. It seems "-DDEBUG" is being
added somewhere other than CMAKE_C_FLAGS, but couldn't figure out
where.

Was able to fix by replacing this line:
remove_cc_flag("-DDEBUG")

With this line:
add_definitions(-UDEBUG)

But didn't want to commit without getting confirmation that this is an OK fix.

Note: using cmake version 2.8.7.

-Nicholas


More information about the Bf-committers mailing list