Force library to be .dll on Windows
This commit is contained in:
parent
45122c12c5
commit
f62742e6c2
|
@ -134,7 +134,7 @@ if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^aarch64")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
set(CMAKE_DEBUG_POSTFIX "d")
|
set(CMAKE_DEBUG_POSTFIX "d")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT BUILD_FRAMEWORK)
|
if(NOT BUILD_FRAMEWORK)
|
||||||
|
@ -150,7 +150,8 @@ add_library(${ANGELSCRIPT_LIBRARY_NAME} ${ANGELSCRIPT_SOURCE} ${ANGELSCRIPT_HEAD
|
||||||
target_include_directories(${ANGELSCRIPT_LIBRARY_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../include)
|
target_include_directories(${ANGELSCRIPT_LIBRARY_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../include)
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
target_compile_definitions(${ANGELSCRIPT_LIBRARY_NAME} PRIVATE -D_CRT_SECURE_NO_WARNINGS)
|
target_compile_definitions(${ANGELSCRIPT_LIBRARY_NAME} PRIVATE -D_CRT_SECURE_NO_WARNINGS)
|
||||||
|
set_target_properties(${ANGELSCRIPT_LIBRARY_NAME} PROPERTIES SUFFIX ".dll")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_compile_definitions(${ANGELSCRIPT_LIBRARY_NAME} PRIVATE -DANGELSCRIPT_EXPORT -D_LIB)
|
target_compile_definitions(${ANGELSCRIPT_LIBRARY_NAME} PRIVATE -DANGELSCRIPT_EXPORT -D_LIB)
|
||||||
|
|
Loading…
Reference in New Issue