From bdff2d983dabdfcde1afc49edef3faa83f4ef7fb Mon Sep 17 00:00:00 2001 From: vlazzarini Date: Thu, 19 Aug 2021 15:46:34 +0100 Subject: [PATCH] found out how to access windows install root --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index edbeacd..5a0b9f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -134,7 +134,7 @@ if(USE_DOUBLE) set(PLUGIN_INSTALL_DIR "$ENV{HOME}/.local/lib/csound/${APIVERSION}/plugins64") elseif(WINDOWS) - set(PLUGIN_INSTALL_DIR "csound/${APIVERSION}/plugins64") + set(PLUGIN_INSTALL_DIR "${env.LOCALAPPDATA}/csound/${APIVERSION}/plugins64") endif() else() message(STATUS "Building with 32-bit floats") @@ -145,7 +145,7 @@ else() set(PLUGIN_INSTALL_DIR "$ENV{HOME}/.local/lib/csound/${APIVERSION}/plugins") elseif(WINDOWS) - set(PLUGIN_INSTALL_DIR "csound/${APIVERSION}/plugins") + set(PLUGIN_INSTALL_DIR "${env.LOCALAPPDATA}/csound/${APIVERSION}/plugins") endif() endif()