mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:27:35 +00:00
CMake: Set CMAKE_RUNTIME_OUTPUT_DIRECTORY based on CMAKE_INSTALL_BINDIR
Instead of hardcoding bin/, we should use the INSTALL_BINDIR directly to reflect the intent of the way we're doing the settings. This should have the benefit of fixing the build when a distro sets the GNUInstallDirs variables to exciting values, like on NixOS.
This commit is contained in:
parent
aa741a1544
commit
a0a1411ec9
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ include(GNUInstallDirs) # make sure to include before we mess w/RPATH
|
||||||
|
|
||||||
# Mirror the structure of the installed tree to ensure that rpaths
|
# Mirror the structure of the installed tree to ensure that rpaths
|
||||||
# always remain valid.
|
# always remain valid.
|
||||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin")
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}")
|
||||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}")
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}")
|
||||||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}")
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue