Skip to content

Commit e08f5f6

Browse files
committed
cmake: use .so extension on Linux
when building against older versions of SuperCollider
1 parent 6c6be36 commit e08f5f6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

source/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ set(supernova_plugins "")
134134

135135
set(CMAKE_SHARED_MODULE_PREFIX "")
136136
set(CMAKE_SHARED_MODULE_SUFFIX ".scx")
137-
set(PLUGIN_EXTENSION ".scx")
137+
if(NOT WIN32 AND NOT APPLE AND (NOT DEFINED SC_VERSION OR SC_VERSION VERSION_LESS "3.15"))
138+
set(CMAKE_SHARED_MODULE_SUFFIX ".so") # before SC 3.15, SuperCollider on *nix expected plugins to have .so extension
139+
endif()
138140

139141

140142
GET_GCC_VERSION(gcc_version)

0 commit comments

Comments
 (0)