Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
483a7b27
Commit
483a7b27
authored
Nov 05, 2014
by
Alexander Golubev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A small cmake enhancement:
An ugly if-condition replaced with a CACHE'd cmake variable.
parent
9f6d1d0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
CMakeLists.txt
CMakeLists.txt
+5
-10
No files found.
CMakeLists.txt
View file @
483a7b27
...
@@ -269,20 +269,15 @@ if( USE_WX_GRAPHICS_CONTEXT )
...
@@ -269,20 +269,15 @@ if( USE_WX_GRAPHICS_CONTEXT )
endif
()
endif
()
# Allow user to override the default settings for adding images to menu items. By default
# By default images in menu items are enabled on all platforms except OSX.
# images in menu items are enabled on all platforms except OSX. This can be over ridden by
if
(
NOT APPLE
)
# defining -DUSE_IMAGES_IN_MENUS=ON/OFF to force the preferred behavior.
set
(
USE_IMAGES_IN_MENUS ON CACHE BOOL
"Enable images in menus"
)
if
(
NOT DEFINED USE_IMAGES_IN_MENUS
)
if
(
NOT APPLE
)
set
(
USE_IMAGES_IN_MENUS ON
)
endif
()
else
()
else
()
if
(
USE_IMAGES_IN_MENUS
)
set
(
USE_IMAGES_IN_MENUS OFF CACHE BOOL
"Enable images in menus"
)
set
(
USE_IMAGES_IN_MENUS ON
)
endif
()
endif
()
endif
()
# KIFACE_SUFFIX is the file extension used for top level program modules which
# KIFACE_SUFFIX is the file extension used for top level program modules which
# implement the KIFACE interface. A valid suffix starts with a period '.'.
# implement the KIFACE interface. A valid suffix starts with a period '.'.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment