feat(Core/Build): add the possibility to link libraries dynamically (#5348)

This commit is contained in:
Kargatum
2021-04-22 03:16:12 +07:00
committed by GitHub
parent 2c5cb29ad4
commit 325dcfc9a6
8 changed files with 261 additions and 8 deletions

View File

@@ -134,7 +134,7 @@ else()
message("* Enable extra logging functions : No (default)")
endif()
if(WIN32 AND NOT CMAKE_VERSION VERSION_LESS 2.8.12)
if(WIN32)
if(NOT WITH_SOURCE_TREE STREQUAL "no")
message("* Show source tree : Yes - \"${WITH_SOURCE_TREE}\"")
else()
@@ -144,4 +144,18 @@ else()
message("* Show source tree : No (For UNIX default)")
endif()
if(BUILD_SHARED_LIBS)
message("")
message(" *** WITH_DYNAMIC_LINKING - INFO!")
message(" *** Will link against shared libraries!")
message(" *** Please note that this is an experimental feature!")
if(WITH_DYNAMIC_LINKING_FORCED)
message("")
message(" *** Dynamic linking was enforced through a dynamic script module!")
endif()
add_definitions(-DACORE_API_USE_DYNAMIC_LINKING)
WarnAboutSpacesInBuildPath()
endif()
message("")