Only use DLL for Windows + Shared

This commit is contained in:
Deukhoofd 2022-02-11 15:34:35 +01:00
parent e2191039d5
commit 06c0953f63
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 3 additions and 1 deletions

View File

@ -151,7 +151,9 @@ target_include_directories(${ANGELSCRIPT_LIBRARY_NAME} PRIVATE ${CMAKE_CURRENT_S
if(MSVC)
target_compile_definitions(${ANGELSCRIPT_LIBRARY_NAME} PRIVATE -D_CRT_SECURE_NO_WARNINGS)
set_target_properties(${ANGELSCRIPT_LIBRARY_NAME} PROPERTIES SUFFIX ".dll")
if (BUILD_SHARED_LIBS)
set_target_properties(${ANGELSCRIPT_LIBRARY_NAME} PROPERTIES SUFFIX ".dll")
endif()
endif()
target_compile_definitions(${ANGELSCRIPT_LIBRARY_NAME} PRIVATE -DANGELSCRIPT_EXPORT -D_LIB)