summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-21 11:58:37 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-21 11:58:37 +0200
commit397aabbef822f7438a55600829cd4d5604a31ebf (patch)
tree06ffe3020798dbb85f05ada124eab63bf7e53cfc /cmake
parent9bf14a5cdeb8768375b2e3c2d64dfa2b9ec9df10 (diff)
cmake: really make the preset dir properly this time
Diffstat (limited to 'cmake')
-rw-r--r--cmake/opentrack-install.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/opentrack-install.cmake b/cmake/opentrack-install.cmake
index 3983c829..64a9164c 100644
--- a/cmake/opentrack-install.cmake
+++ b/cmake/opentrack-install.cmake
@@ -23,8 +23,8 @@ endfunction()
otr_install_dir("${opentrack-doc}" ${CMAKE_SOURCE_DIR}/3rdparty-notices)
otr_install_dir("${opentrack-doc}" "${CMAKE_SOURCE_DIR}/settings" "${CMAKE_SOURCE_DIR}/contrib")
-
-INSTALL(CODE "FILE(MAKE_DIRECTORY \${CMAKE_INSTALL_PREFIX}/\${opentrack-hier-libexec}/presets)")
+otr_escape_string(module-dir "${CMAKE_INSTALL_PREFIX}/${opentrack-libexec}")
+INSTALL(CODE "FILE(MAKE_DIRECTORY \"${module-dir}/presets\")")
if(WIN32)
otr_install_misc(. FILES "${CMAKE_SOURCE_DIR}/bin/qt.conf")