CmakeLists.txt: Added version-number and debug suffixes + SPDLOG_BUILD_SHARED property

This commit is contained in:
gabime
2019-09-08 00:42:23 +03:00
parent 1857a44c7c
commit 45a18a61c6
2 changed files with 16 additions and 4 deletions

View File

@@ -19,6 +19,7 @@ function(spdlog_extract_version)
endif()
set(ver_patch ${CMAKE_MATCH_1})
set(SPDLOG_VERSION_MAJOR ${ver_major} PARENT_SCOPE)
set (SPDLOG_VERSION "${ver_major}.${ver_minor}.${ver_patch}" PARENT_SCOPE)
endfunction()