1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +00:00

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.
This commit is contained in:
Andrew Kaster 2023-12-08 15:19:06 -07:00 committed by Andrew Kaster
parent 9b77fc00ba
commit 0052f9e895

View file

@ -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