mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 00:29:15 +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
Notes:
sideshowbarker
2024-07-17 09:40:09 +09:00
Author: https://github.com/ADKaster
Commit: 02e8f29560
Pull-request: https://github.com/SerenityOS/serenity/pull/14481
3 changed files with 12 additions and 10 deletions
|
@ -37,7 +37,7 @@ function(compile_ipc source output)
|
|||
# https://cmake.org/cmake/help/v3.23/command/cmake_path.html#relative-path
|
||||
string(LENGTH ${SerenityOS_SOURCE_DIR} root_source_dir_length)
|
||||
string(SUBSTRING ${CMAKE_CURRENT_SOURCE_DIR} ${root_source_dir_length} -1 current_source_dir_relative)
|
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${output} DESTINATION usr/include${current_source_dir_relative} OPTIONAL)
|
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${output} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${current_source_dir_relative}" OPTIONAL)
|
||||
endfunction()
|
||||
|
||||
function(generate_state_machine source header)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue