fix: use INSTALL_DIR for cmake install to support flatpak sandbox
This commit is contained in:
+5
-1
@@ -756,7 +756,11 @@ else()
|
||||
endif()
|
||||
endif()
|
||||
file(GLOB CMAKES "cmake/*.cmake" "cmake/*.in")
|
||||
install(FILES ${CMAKES} DESTINATION ${CMAKE_ROOT}/Modules)
|
||||
if(INSTALL_DIR)
|
||||
install(FILES ${CMAKES} DESTINATION ${INSTALL_DIR}/cmake)
|
||||
else()
|
||||
install(FILES ${CMAKES} DESTINATION ${CMAKE_ROOT}/Modules)
|
||||
endif()
|
||||
|
||||
|
||||
shstk_is_parent_exists(_pe)
|
||||
|
||||
Reference in New Issue
Block a user