BUG #9419: Added wxWidgets_EXCLUDE_COMMON_LIBRARIES option.
This allows the user not to link to the common libraries, which are regularly required. The user must specify all libraries that he does want to link in the find_package line (png tiff jpeg zlib regex expat). --HG-- extra : rebase_source : df29f96c957600629a34a1c5fafb8b3d6f274e22
This commit is contained in:
parent
b461a68786
commit
8f9f6b3ac1
|
@ -18,6 +18,10 @@
|
|||
# (e.g., C:/wxWidgets-2.6.3/lib/vc_lib).
|
||||
# wxWidgets_CONFIGURATION - Configuration to use
|
||||
# (e.g., msw, mswd, mswu, mswunivud, etc.)
|
||||
# wxWidgets_EXCLUDE_COMMON_LIBRARIES
|
||||
# - Set to TRUE to exclude linking of
|
||||
# commonly required libs (e.g., png tiff
|
||||
# jpeg zlib regex expat).
|
||||
#
|
||||
# For unix style it uses the wx-config utility. You can select between
|
||||
# debug/release, unicode/ansi, universal/non-universal, and
|
||||
|
@ -213,8 +217,12 @@ IF(wxWidgets_FIND_STYLE STREQUAL "win32")
|
|||
ENDIF(wxWidgets_USE_MONOLITHIC)
|
||||
ENDIF(NOT wxWidgets_FIND_COMPONENTS)
|
||||
|
||||
# Always add the common required libs.
|
||||
LIST(APPEND wxWidgets_FIND_COMPONENTS ${wxWidgets_COMMON_LIBRARIES})
|
||||
# Add the common (usually required libs) unless
|
||||
# wxWidgets_EXCLUDE_COMMON_LIBRARIES has been set.
|
||||
IF(NOT wxWidgets_EXCLUDE_COMMON_LIBRARIES)
|
||||
LIST(APPEND wxWidgets_FIND_COMPONENTS
|
||||
${wxWidgets_COMMON_LIBRARIES})
|
||||
ENDIF(NOT wxWidgets_EXCLUDE_COMMON_LIBRARIES)
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
# WIN32: Helper MACROS
|
||||
|
|
Loading…
Reference in New Issue