mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-07 20:31:04 +03: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:
parent
9b77fc00ba
commit
0052f9e895
Notes:
sideshowbarker
2024-07-16 21:51:02 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/0052f9e895 Pull-request: https://github.com/SerenityOS/serenity/pull/22216
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user