mirror of
https://github.com/fmtlib/fmt.git
synced 2026-08-03 20:14:20 +02:00
Skip VERSION/SOVERSION/DEBUG_POSTFIX on the header-only INTERFACE target (#4830)
* Skip VERSION/SOVERSION/DEBUG_POSTFIX on the header-only INTERFACE target * Lint check fixed
This commit is contained in:
+7
-5
@@ -256,11 +256,13 @@ function (setup_target target kind)
|
|||||||
target_compile_definitions(${target} ${kind} FMT_UNICODE=0)
|
target_compile_definitions(${target} ${kind} FMT_UNICODE=0)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
set_target_properties(
|
if (NOT "${kind}" STREQUAL "INTERFACE")
|
||||||
${target}
|
set_target_properties(
|
||||||
PROPERTIES VERSION ${FMT_VERSION}
|
${target}
|
||||||
SOVERSION ${CPACK_PACKAGE_VERSION_MAJOR}
|
PROPERTIES VERSION ${FMT_VERSION}
|
||||||
DEBUG_POSTFIX "${FMT_DEBUG_POSTFIX}")
|
SOVERSION ${CPACK_PACKAGE_VERSION_MAJOR}
|
||||||
|
DEBUG_POSTFIX "${FMT_DEBUG_POSTFIX}")
|
||||||
|
endif ()
|
||||||
endfunction ()
|
endfunction ()
|
||||||
|
|
||||||
set(FMT_HEADERS)
|
set(FMT_HEADERS)
|
||||||
|
|||||||
Reference in New Issue
Block a user