Add FMT_DEBUG_SUFFIX variable.
This commit is contained in:
parent
98622ec4aa
commit
8a9232668a
@ -174,17 +174,18 @@ target_include_directories(fmt PUBLIC
|
|||||||
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
|
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
|
||||||
$<INSTALL_INTERFACE:include>)
|
$<INSTALL_INTERFACE:include>)
|
||||||
|
|
||||||
|
set(FMT_DEBUG_POSTFIX d)
|
||||||
|
|
||||||
set_target_properties(fmt PROPERTIES
|
set_target_properties(fmt PROPERTIES
|
||||||
OUTPUT_NAME fmt
|
OUTPUT_NAME fmt
|
||||||
VERSION ${FMT_VERSION}
|
VERSION ${FMT_VERSION}
|
||||||
SOVERSION ${CPACK_PACKAGE_VERSION_MAJOR}
|
SOVERSION ${CPACK_PACKAGE_VERSION_MAJOR}
|
||||||
DEBUG_POSTFIX d)
|
DEBUG_POSTFIX ${FMT_DEBUG_POSTFIX})
|
||||||
|
|
||||||
# Configure pkg-config fmt.pc properly
|
# Configure pkg-config fmt.pc properly
|
||||||
get_target_property(FMT_LIB_NAME fmt OUTPUT_NAME)
|
get_target_property(FMT_LIB_NAME fmt OUTPUT_NAME)
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
get_target_property(_FMT_LIB_POSTFIX fmt DEBUG_POSTFIX)
|
set(FMT_LIB_NAME ${FMT_LIB_NAME}${FMT_DEBUG_POSTFIX})
|
||||||
set(FMT_LIB_NAME ${FMT_LIB_NAME}${_FMT_LIB_POSTFIX})
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (BUILD_SHARED_LIBS)
|
if (BUILD_SHARED_LIBS)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user