diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-01-23 14:15:19 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-01-23 14:15:19 +0100 |
commit | 7bcd5d95b9675b5f3fd9d710fb1389df5817d0f0 (patch) | |
tree | 63b41d5133115026c882a7eb422087c229f962ba /cmake | |
parent | 8369f50018f796bb1da957b4404c01580102f2fb (diff) |
cmake: respect DESTDIR for preset directory
Based on a patch by @dlpierce
Fixes #1603
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/opentrack-install.cmake | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmake/opentrack-install.cmake b/cmake/opentrack-install.cmake index 64a9164c..5aac983b 100644 --- a/cmake/opentrack-install.cmake +++ b/cmake/opentrack-install.cmake @@ -23,8 +23,7 @@ endfunction() otr_install_dir("${opentrack-doc}" ${CMAKE_SOURCE_DIR}/3rdparty-notices) otr_install_dir("${opentrack-doc}" "${CMAKE_SOURCE_DIR}/settings" "${CMAKE_SOURCE_DIR}/contrib") -otr_escape_string(module-dir "${CMAKE_INSTALL_PREFIX}/${opentrack-libexec}") -INSTALL(CODE "FILE(MAKE_DIRECTORY \"${module-dir}/presets\")") +otr_install_dir("${opentrack-libexec}" "${CMAKE_SOURCE_DIR}/presets") if(WIN32) otr_install_misc(. FILES "${CMAKE_SOURCE_DIR}/bin/qt.conf") |