fix: use INSTALL_DIR for cmake install to support flatpak sandbox

This commit is contained in:
2026-08-12 21:36:53 +03:00
parent 9214e805d9
commit 8da659c47a
+4
View File
@@ -756,7 +756,11 @@ else()
endif()
endif()
file(GLOB CMAKES "cmake/*.cmake" "cmake/*.in")
if(INSTALL_DIR)
install(FILES ${CMAKES} DESTINATION ${INSTALL_DIR}/cmake)
else()
install(FILES ${CMAKES} DESTINATION ${CMAKE_ROOT}/Modules)
endif()
shstk_is_parent_exists(_pe)