mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
Allow NOTCURSES_SHARE to be specified #363
This commit is contained in:
parent
c02e6311c7
commit
e070c73f63
@ -10,7 +10,14 @@ set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
set(NOTCURSES_SHARE ${CMAKE_INSTALL_PREFIX}/share/notcurses)
|
||||
|
||||
# NOTCURSES_SHARE is exported to the application during build, so that
|
||||
# notcurses-demo knows where to find its data. Allow NOTCURSES_SHARE to be
|
||||
# specified explicitly, but otherwise derive it from CMAKE_INSTALL_PREFIX. This
|
||||
# is for the benfit of Arch, which otherwise packages us up planning to look in
|
||||
# some offset from the build directory (which might not even exist anymore,
|
||||
# though this would still be undesirable behavior even then).
|
||||
set(NOTCURSES_SHARE "${CMAKE_INSTALL_PREFIX}/share/notcurses)" CACHE STRING "Path for installing data files")
|
||||
|
||||
###################### USER-SELECTABLE OPTIONS ###########################
|
||||
option(DFSG_BUILD "DFSG build (no non-free media/code)" OFF)
|
||||
|
Loading…
x
Reference in New Issue
Block a user