mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:07:46 +00:00
Meta: Use CMAKE_INSTALL_FOODIR variables instead of hardcoding usr/foo
In preparation for future refactoring of Lagom, let's use the variables from GNUInstallDirs as much as possible for the helper macros and other scripts used by the main build already.
This commit is contained in:
parent
2b82c83ceb
commit
02e8f29560
3 changed files with 12 additions and 10 deletions
|
@ -152,13 +152,15 @@ if (ENABLE_ALL_THE_DEBUG_MACROS)
|
|||
include(all_the_debug_macros)
|
||||
endif(ENABLE_ALL_THE_DEBUG_MACROS)
|
||||
|
||||
set(CMAKE_STAGING_PREFIX "${CMAKE_BINARY_DIR}/Root")
|
||||
set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/Root")
|
||||
set(CMAKE_INSTALL_DATAROOTDIR res)
|
||||
set(CMAKE_INSTALL_INCLUDEDIR usr/include)
|
||||
set(CMAKE_INSTALL_LIBDIR usr/lib)
|
||||
|
||||
configure_file(AK/Debug.h.in AK/Debug.h @ONLY)
|
||||
configure_file(Kernel/Debug.h.in Kernel/Debug.h @ONLY)
|
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/AK/Debug.h DESTINATION usr/include/AK)
|
||||
|
||||
set(CMAKE_STAGING_PREFIX ${CMAKE_BINARY_DIR}/Root)
|
||||
set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/Root)
|
||||
set(CMAKE_INSTALL_DATAROOTDIR ${CMAKE_BINARY_DIR}/Root/res)
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/AK/Debug.h" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/AK")
|
||||
|
||||
# We disable it completely because it makes cmake very spammy.
|
||||
# This will need to be revisited when the Loader supports RPATH/RUN_PATH.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue