Skip to content

Commit 028c6e8

Browse files
committed
install dirs now set to CS USER PLUGIN DIR
1 parent 2b4b55f commit 028c6e8

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

CMakeLists.txt

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,20 +124,29 @@ if(NOT APPLE)
124124
message(STATUS "LIBRARY INSTALL DIR: ${LIBRARY_INSTALL_DIR}")
125125
endif()
126126

127+
# plugin install directories (CS_USER_PLUGIN)
127128
if(USE_DOUBLE)
128129
message(STATUS "Building with 64-bit floats")
129-
set(PLUGIN_INSTALL_DIR "${LIBRARY_INSTALL_DIR}/csound/plugins64-${APIVERSION}")
130130
if(APPLE)
131131
set(PLUGIN_INSTALL_DIR
132-
"${CSOUND_FRAMEWORK}/Versions/${APIVERSION}/Resources/Opcodes64")
132+
"$ENV{HOME}/Library/csound/${APIVERSION}/plugins64")
133+
elseif(LINUX)
134+
set(PLUGIN_INSTALL_DIR
135+
"$ENV{HOME}/csound/${APIVERSION}/plugins64")
136+
elseif(WINDOWS)
137+
set(PLUGIN_INSTALL_DIR "csound/${APIVERSION}/plugins64")
133138
endif()
134139
else()
135140
message(STATUS "Building with 32-bit floats")
136-
set(PLUGIN_INSTALL_DIR "${LIBRARY_INSTALL_DIR}/csound/plugins-${APIVERSION}")
137141
if(APPLE)
138142
set(PLUGIN_INSTALL_DIR
139-
"${CSOUND_FRAMEWORK32}/Versions/${APIVERSION}/Resources/Opcodes")
140-
endif()
143+
"$ENV{HOME}/Library/csound/${APIVERSION}/plugins")
144+
elseif(LINUX)
145+
set(PLUGIN_INSTALL_DIR
146+
"$ENV{HOME}/csound/${APIVERSION}/plugins")
147+
elseif(WINDOWS)
148+
set(PLUGIN_INSTALL_DIR "csound/${APIVERSION}/plugins")
149+
endif()
141150
endif()
142151

143152
message("-- Csound headers: ${CSOUND_INCLUDE_DIR}")

0 commit comments

Comments
 (0)