Allow NOTCURSES_SHARE to be specified #363

pull/384/head
nick black 4 years ago
parent c02e6311c7
commit e070c73f63
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -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…
Cancel
Save