1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 09:57:36 +00:00

CMake: Modify include path when building from Hack Studio

With regular builds, the generated IPC headers exist inside the Build
directory. The path Userland/Services under the build directory is
added to the include path.

For in-system builds the IPC headers are installed at /usr/include/.
To support this, we add /usr/include/Userland/Services to the build path
when building from Hack Studio.

Co-Authored-By: Andrew Kaster <akaster@serenityos.org>
This commit is contained in:
Itamar 2022-03-19 17:15:08 +02:00 committed by Andreas Kling
parent fe7d28e870
commit b6f358689c
3 changed files with 5 additions and 0 deletions

View file

@ -269,6 +269,7 @@ serenity_component(
)
if (HACKSTUDIO_BUILD)
include_directories(/usr/include/Userland/Services)
include(${HACKSTUDIO_BUILD_CMAKE_FILE})
return()
endif()