CMake: Minor fixes

This commit is contained in:
Vicki Pfau 2022-06-06 21:40:18 -07:00
parent 70a34a58f0
commit 542824e3c0
2 changed files with 3 additions and 1 deletions

View File

@ -152,6 +152,9 @@ endif()
mark_as_advanced(DISTBUILD)
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${LIBDIR}")
if(${CMAKE_INSTALL_PREFIX} STREQUAL "/usr")
set(CMAKE_SKIP_RPATH ON)
endif()
if (NOT DEFINED MANDIR)
set(MANDIR ${CMAKE_INSTALL_MANDIR})

View File

@ -311,7 +311,6 @@ if(BUILD_GL OR BUILD_GLES2 OR BUILD_EPOXY)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/res/shaders DESTINATION ${DATADIR} COMPONENT ${BINARY_NAME}-qt)
endif()
if(ENABLE_SCRIPTING AND USE_LUA)
message(STATUS ${CMAKE_SOURCE_DIR}/res/scripts)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/res/scripts DESTINATION ${DATADIR} COMPONENT ${BINARY_NAME}-qt)
endif()
install(FILES ${CMAKE_SOURCE_DIR}/res/nointro.dat DESTINATION ${DATADIR} COMPONENT ${BINARY_NAME}-qt)