From 3160c77bc326a00ed0101f7dcb8f568e833b4ca3 Mon Sep 17 00:00:00 2001 From: Donny Lawrence Date: Wed, 26 Jun 2019 22:05:32 -0500 Subject: [PATCH] CMake: MODULEs should use .dylib, not .so --- dtool/CompilerFlags.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dtool/CompilerFlags.cmake b/dtool/CompilerFlags.cmake index 5bda795d14..6deacff59b 100644 --- a/dtool/CompilerFlags.cmake +++ b/dtool/CompilerFlags.cmake @@ -60,6 +60,12 @@ if(WIN32) endif() endif() +# Though not technically correct, we'll still want MODULE type libraries +# (used for display and audio plugins) to use a .dylib extension. +if(APPLE) + set(CMAKE_SHARED_MODULE_SUFFIX ".dylib") +endif() + # Since we're using CMAKE_CFG_INTDIR to put everything in a # configuration-specific subdirectory when building on a multi-config # generator, we need to suppress the usual configuration name appending