CMake doesn't honor CPPFLAGS
Bug #1325329 reported by
Sergey "Shnatsel" Davidoff
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Slingshot |
New
|
Undecided
|
Unassigned | ||
Terminal |
Fix Released
|
Undecided
|
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_
Most elementary applications as well as the example at http://
Related branches
lp:~elementary-apps/pantheon-terminal/fix-cmake-cppflags
- Rico Tzschichholz: Approve
-
Diff: 14 lines (+5/-0)1 file modifiedCMakeLists.txt (+5/-0)
Changed in pantheon-terminal: | |
assignee: | nobody → Sergey "Shnatsel" Davidoff (shnatsel) |
status: | New → Fix Committed |
Changed in pantheon-terminal: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
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.