From 0052f9e89551db17cbd380b24fe60b989bb8eecc Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Fri, 8 Dec 2023 15:19:06 -0700 Subject: [PATCH] CMake: Don't try to enable install options if no languages are enabled This removes a CMake dev warning when building serenity via the Superbuild. --- Meta/CMake/lagom_install_options.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Meta/CMake/lagom_install_options.cmake b/Meta/CMake/lagom_install_options.cmake index 6c96c80e10..b9e3baaa66 100644 --- a/Meta/CMake/lagom_install_options.cmake +++ b/Meta/CMake/lagom_install_options.cmake @@ -1,5 +1,11 @@ include_guard() +# Skip trying to setup install rules if no languages are enabled, such as in the Superbuild. +get_property(languages GLOBAL PROPERTY ENABLED_LANGUAGES) +if (NONE IN_LIST languages) + return() +endif() + include(GNUInstallDirs) # make sure to include before we mess w/RPATH # Mirror the structure of the installed tree to ensure that rpaths