Fix: [CMake] Fix install paths using GNUInstallDirs

This commit is contained in:
Dan Church
2020-06-18 11:34:19 -05:00
committed by Charles Pigott
parent b0f192abc4
commit 506598a80a
3 changed files with 17 additions and 6 deletions

View File

@@ -8,6 +8,13 @@ endif (CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
# Use GNUInstallDirs to allow customisation
# but set our own default data dir
if (NOT CMAKE_INSTALL_DATADIR)
set(CMAKE_INSTALL_DATADIR "share/games")
endif (NOT CMAKE_INSTALL_DATADIR)
include(GNUInstallDirs)
include(Options)
set_options()
set_directory_options()