From 5ec7c4a54116053864848925869598d769ef847b Mon Sep 17 00:00:00 2001 From: Colin Kinloch Date: Thu, 8 Feb 2024 20:00:21 +0000 Subject: [PATCH] Use CMAKE_INSTALL_FULL_DATADIR --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2aa5d92a7..ad18b67e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1076,7 +1076,7 @@ if (NOT ANDROID OR TERMUX) install(DIRECTORY papers DESTINATION ${CMAKE_INSTALL_DOCDIR}/other) install(FILES LICENSE DESTINATION ${CMAKE_INSTALL_DATADIR}/licenses/furnace) if (WITH_DEMOS OR WITH_INSTRUMENTS OR WITH_WAVETABLES) - set(FURNACE_DATADIR ${CMAKE_INSTALL_DATADIR}/furnace) + set(FURNACE_DATADIR ${CMAKE_INSTALL_FULL_DATADIR}/furnace) if (WITH_DEMOS) install(DIRECTORY demos DESTINATION ${FURNACE_DATADIR}) endif() @@ -1086,7 +1086,7 @@ if (NOT ANDROID OR TERMUX) if (WITH_WAVETABLES) install(DIRECTORY wavetables DESTINATION ${FURNACE_DATADIR}) endif() - add_compile_definitions(FURNACE_DATADIR="${CMAKE_INSTALL_PREFIX}/${FURNACE_DATADIR}") + add_compile_definitions(FURNACE_DATADIR="${FURNACE_DATADIR}") if (SHOW_OPEN_ASSETS_MENU_ENTRY) add_compile_definitions(SHOW_OPEN_ASSETS_MENU_ENTRY) endif()