Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 588970

Summary: cmake-utils.eclass - cmake-utils_use_(enable|with): consider switching from ON/OFF to 1/0
Product: Gentoo Linux Reporter: Jeroen Roovers (RETIRED) <jer>
Component: EclassesAssignee: Gentoo KDE team <kde>
Status: RESOLVED NEEDINFO    
Severity: trivial    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jeroen Roovers (RETIRED) gentoo-dev 2016-07-17 07:21:35 UTC
cmake can match strings but C/C++ preprocessor directives cannot trivially do the same.

cmake accepts with/enable with ON/OFF, TRUE/FALSE (and so on) as well as 1/0, so if we switch to the latter, we can simplify patches that re-use the cmake directives as preprocessor directives.
Comment 1 Michael Palimaka (kensington) gentoo-dev 2016-07-17 17:39:39 UTC
Could you please show a sample of where this will help?