Fix: [CMake] Restore 'games' as default install bindir (#8629)

This commit is contained in:
Loïc Guilloux
2021-02-07 16:19:30 +01:00
committed by GitHub
parent 2a6da319b2
commit f7ac2969ef

View File

@@ -23,10 +23,13 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.9) set(CMAKE_OSX_DEPLOYMENT_TARGET 10.9)
# Use GNUInstallDirs to allow customisation # Use GNUInstallDirs to allow customisation
# but set our own default data dir # but set our own default data and bin dir
if(NOT CMAKE_INSTALL_DATADIR) if(NOT CMAKE_INSTALL_DATADIR)
set(CMAKE_INSTALL_DATADIR "share/games") set(CMAKE_INSTALL_DATADIR "share/games")
endif() endif()
if(NOT CMAKE_INSTALL_BINDIR)
set(CMAKE_INSTALL_BINDIR "games")
endif()
include(GNUInstallDirs) include(GNUInstallDirs)
include(Options) include(Options)