Browse Source

CMake: MODULEs should use .dylib, not .so

Donny Lawrence 6 years ago
parent
commit
3160c77bc3
1 changed files with 6 additions and 0 deletions
  1. 6 0
      dtool/CompilerFlags.cmake

+ 6 - 0
dtool/CompilerFlags.cmake

@@ -60,6 +60,12 @@ if(WIN32)
   endif()
   endif()
 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
 # Since we're using CMAKE_CFG_INTDIR to put everything in a
 # configuration-specific subdirectory when building on a multi-config
 # configuration-specific subdirectory when building on a multi-config
 # generator, we need to suppress the usual configuration name appending
 # generator, we need to suppress the usual configuration name appending