From c08ae13388ce2e0447f89288a7d84d632ea79428 Mon Sep 17 00:00:00 2001 From: ferdymercury Date: Thu, 11 Apr 2024 09:30:34 +0200 Subject: [PATCH] [cmake] fine-tune the builtin-afterimage flag removal (#15195) * [cmake] only build afterimage if asimage is ON Fine-tunes commit https://github.com/root-project/root/commit/0992621c3e8cadc920b9b139fca87261ef11c93b * [cmake] mention builtin_afterimage as removed And clarify warning, rather than saying that it is not supported, as someone might think that things that are now ON by default are no longer supported. --- cmake/modules/RootBuildOptions.cmake | 4 ++-- cmake/modules/SearchInstalledSoftware.cmake | 18 +----------------- 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/cmake/modules/RootBuildOptions.cmake b/cmake/modules/RootBuildOptions.cmake index 70dab61a530a5..bdb93baa04b7f 100644 --- a/cmake/modules/RootBuildOptions.cmake +++ b/cmake/modules/RootBuildOptions.cmake @@ -394,13 +394,13 @@ if(NOT webgui) endif() #---Removed options------------------------------------------------------------ -foreach(opt afdsmgrd afs alien bonjour castor chirp cxx11 cxx14 cxx17 +foreach(opt afdsmgrd afs alien bonjour builtin_afterimage castor chirp cxx11 cxx14 cxx17 exceptions geocad gfal glite globus gsl_shared hdfs ios jemalloc krb5 ldap memstat minuit2 monalisa oracle pyroot-python2 pyroot_legacy pythia6 pythia6_nolink python qt qtgsi rfio ruby sapdb srp table tcmalloc vmc xproofd) if(${opt}) - message(FATAL_ERROR ">>> Option '${opt}' is no longer supported in ROOT ${ROOT_VERSION}.") + message(FATAL_ERROR ">>> '${opt}' is no longer part of ROOT ${ROOT_VERSION} build options.") endif() endforeach() diff --git a/cmake/modules/SearchInstalledSoftware.cmake b/cmake/modules/SearchInstalledSoftware.cmake index feb7267ef1ec1..858ab0a7f52cd 100644 --- a/cmake/modules/SearchInstalledSoftware.cmake +++ b/cmake/modules/SearchInstalledSoftware.cmake @@ -406,23 +406,8 @@ if(asimage) if(JPEG_FOUND) set(ASEXTRA_LIBRARIES ${ASEXTRA_LIBRARIES} ${JPEG_LIBRARIES}) endif() -endif() - -#---Check for AfterImage--------------------------------------------------------------- -if(asimage AND NOT builtin_afterimage) - message(STATUS "Looking for AfterImage") - if(fail-on-missing) - find_package(AfterImage REQUIRED) - else() - find_package(AfterImage) - if(NOT AFTERIMAGE_FOUND) - message(STATUS "AfterImage not found. Switching on builtin_afterimage option") - set(builtin_afterimage ON CACHE BOOL "Enabled because asimage requested and AfterImage not found (${builtin_afterimage_description})" FORCE) - endif() - endif() -endif() -if(builtin_afterimage) + #---AfterImage--------------------------------------------------------------- set(AFTERIMAGE_LIBRARIES ${CMAKE_BINARY_DIR}/lib/libAfterImage${CMAKE_STATIC_LIBRARY_SUFFIX}) if(WIN32) if(winrtdebug) @@ -443,7 +428,6 @@ if(builtin_afterimage) ) set(AFTERIMAGE_INCLUDE_DIR ${CMAKE_BINARY_DIR}/AFTERIMAGE-prefix/src/AFTERIMAGE) else() - message(STATUS "Building AfterImage library included in ROOT itself") if(JPEG_FOUND) set(_jpeginclude --with-jpeg-includes=${JPEG_INCLUDE_DIR}) else()