Core/ScriptReloadMgr: Fixed scripts hot swapping on OS X

This commit is contained in:
Aokromes committed 2017-04-01 07:20:43 +02:00
1 parent 84cba8496c
commit df1730a734
2 files changed
+53 -26

No files matched your search

+3 -1
View File
@@ -85,10 +85,12 @@ function(IsDynamicLinkingRequired variable)
set(${variable} ${IS_REQUIRED} PARENT_SCOPE)
endfunction()
# Stores the native variable name
# Stores the native variable name
function(GetNativeSharedLibraryName module variable)
if(WIN32)
set(${variable} "${module}.dll" PARENT_SCOPE)
elseif(APPLE)
set(${variable} "lib${module}.dylib" PARENT_SCOPE)
else()
set(${variable} "lib${module}.so" PARENT_SCOPE)
endif()