Fix install directory of translations
Using `CMAKE_INSTALL_DATAROOTDIR` was not the best idea because it might be empty. Let's just use hard-code `share/games` for now in accordance with existing code.
This commit is contained in:
parent
3c22745d74
commit
eedc6e50b8
|
@ -118,7 +118,7 @@ if (NOT DATA_DIR)
|
||||||
set(DATA_DIR "share/games/pianobooster")
|
set(DATA_DIR "share/games/pianobooster")
|
||||||
endif ()
|
endif ()
|
||||||
add_compile_options("-DDATA_DIR=\"${DATA_DIR}\"")
|
add_compile_options("-DDATA_DIR=\"${DATA_DIR}\"")
|
||||||
set(CMAKE_INSTALL_DATAROOTDIR "${CMAKE_INSTALL_DATAROOTDIR}/games") # used by c++/qtutilities
|
set(CMAKE_INSTALL_DATAROOTDIR "share/games") # used by c++/qtutilities
|
||||||
|
|
||||||
# apply basic configuration
|
# apply basic configuration
|
||||||
include(BasicConfig)
|
include(BasicConfig)
|
||||||
|
|
Loading…
Reference in New Issue