CMake doesn't honor CPPFLAGS

Bug #1325329 reported by Sergey "Shnatsel" Davidoff on 2014-06-01
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
Sergey "Shnatsel" Davidoff

Bug Description

CMake doesn't honor CPPFLAGS (C preprocessor flags) environment variable. Because of this not all Debian hardening options are applied, in particular "-D_FORTIFY_SOURCE=2" is not applied.

Most elementary applications as well as the example at seem to be affected.

The quick fix I've devised so far is adding the following line to CMakeLists.txt:
    add_definitions (${CPPFLAGS})

I have no idea if this is the proper way to fix that.

Interestingly enough, Maya doesn't seem to be affected.

Changed in pantheon-terminal:
assignee: nobody → Sergey "Shnatsel" Davidoff (shnatsel)
status: New → Fix Committed
David Gomes (davidgomes) on 2014-08-12
Changed in pantheon-terminal:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers