diff options
Diffstat (limited to 'CMake')
| -rw-r--r-- | CMake/options.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CMake/options.cmake b/CMake/options.cmake index 2725d6c79..0ae0195b8 100644 --- a/CMake/options.cmake +++ b/CMake/options.cmake @@ -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) @@ -355,6 +356,13 @@ else() 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) option(CMAKE_SUPPRESS_REGENERATION |
