mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
CMake: Don't recursively include Ladybird/Lagom in buggy CMake versions
Ran into this with the new EAP for CLion Nova. When using Ladybird as source directory, we would recursively look in Ladybird --> Lagom --> Ladybird when exporting components. This seems to be because ENABLE_LAGOM_LADYBIRD is set to ON by Ladybird's CMakeLists and something about their build, when invoked from their IDE, has buggy behavior around the SUBDIRECTORIES directory property.
This commit is contained in:
parent
94b47ff03b
commit
7eda36bbf4
1 changed files with 4 additions and 1 deletions
|
@ -538,7 +538,10 @@ if (BUILD_LAGOM)
|
|||
add_executable(gzip ../../Userland/Utilities/gzip.cpp)
|
||||
target_link_libraries(gzip LibCompress LibCore LibMain)
|
||||
|
||||
if (ENABLE_LAGOM_LADYBIRD)
|
||||
# FIXME: Use PROJECT_IS_TOPLEVEL with cmake 3.21
|
||||
# Work around bug in JetBrains distributed CMake 3.27.2 where this causes infinite recursion in
|
||||
# export_components() when called from CLion Nova by checking if we already have Ladybird included
|
||||
if (ENABLE_LAGOM_LADYBIRD AND NOT ladybird_SOURCE_DIR)
|
||||
add_serenity_subdirectory(Ladybird)
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue