mirror of
https://github.com/fltk/fltk.git
synced 2026-05-27 02:46:34 +08:00
New CMake option OPTION_PRINT_SUPPORT turned ON by default
When the option is off, file config.h defines NO_PRINT_SUPPORT which in turn produces a library without print support, that is, class Fl_Printer does nothing. When off, the FLTK library is somewhat smaller. Can be turned off only when the X11 library is used. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11127 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -78,6 +78,7 @@ option(OPTION_BUILD_SHARED_LIBS
|
||||
|
||||
#######################################################################
|
||||
option(OPTION_BUILD_EXAMPLES "build example programs" ON)
|
||||
option(OPTION_PRINT_SUPPORT "allow print support" ON)
|
||||
|
||||
#######################################################################
|
||||
if(DOXYGEN_FOUND)
|
||||
@@ -354,6 +355,13 @@ else()
|
||||
set(FLTK_XDBE_FOUND FALSE)
|
||||
endif(OPTION_USE_XDBE AND HAVE_XDBE_H)
|
||||
|
||||
#######################################################################
|
||||
set(NO_PRINT_SUPPORT FALSE)
|
||||
if(X11_FOUND AND NOT OPTION_PRINT_SUPPORT)
|
||||
set(NO_PRINT_SUPPORT TRUE)
|
||||
endif(X11_FOUND AND NOT OPTION_PRINT_SUPPORT)
|
||||
#######################################################################
|
||||
|
||||
#######################################################################
|
||||
# prior to CMake 3.0 this feature was buggy
|
||||
if(NOT CMAKE_VERSION VERSION_LESS 3.0.0)
|
||||
|
||||
Reference in New Issue
Block a user