summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-07-24 00:54:17 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-07-24 00:55:50 +0200
commit32f2614d3c7e8b301ac58c2306cdd826635abe65 (patch)
treed398ddf840a0ba2dd734e1e905fa2ff9a850db25
parent794710a8a525dbe200ac18ac2af507cc96ebea61 (diff)
cmake: fix build with Gentoo ebuild sandbox
Issue: #1897 Reported-by: @kakra
-rw-r--r--cmake/opentrack-i18n.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmake/opentrack-i18n.cmake b/cmake/opentrack-i18n.cmake
index 6c424017..1f0c67d9 100644
--- a/cmake/opentrack-i18n.cmake
+++ b/cmake/opentrack-i18n.cmake
@@ -58,7 +58,8 @@ endfunction()
function(otr_merge_translations)
otr_escape_string(i18n-pfx "${opentrack-i18n}")
- install(CODE "file(REMOVE_RECURSE \"\${CMAKE_INSTALL_PREFIX}/${i18n-pfx}\")")
+ #install(CODE "message(FATAL_ERROR \"foo \${CMAKE_INSTALL_PREFIX}\")")
+ #install(CODE "file(REMOVE_RECURSE \"\${CMAKE_INSTALL_PREFIX}/${i18n-pfx}\")")
foreach(i ${opentrack_all-translations})
get_property(ts-files GLOBAL PROPERTY "opentrack-ts-files-${i}")
@@ -90,7 +91,7 @@ function(otr_merge_translations)
add_dependencies(i18n-lrelease ${target-name})
install(FILES "${qm-output}"
- DESTINATION "${CMAKE_INSTALL_PREFIX}/${opentrack-i18n}"
+ DESTINATION "${opentrack-i18n}"
PERMISSIONS ${opentrack-perms-file})
endforeach()
endfunction()