Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
6c30f414
Commit
6c30f414
authored
Jan 24, 2020
by
Attila Mark
Committed by
Victor Zverovich
Jan 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Configure fmt.pc library name correctly.
Simplify getting library name. Add FMT_DEBUG_SUFFIX variable.
parent
1acb73f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
CMakeLists.txt
CMakeLists.txt
+9
-1
support/cmake/fmt.pc.in
support/cmake/fmt.pc.in
+1
-1
No files found.
CMakeLists.txt
View file @
6c30f414
...
...
@@ -174,9 +174,17 @@ target_include_directories(fmt PUBLIC
$<BUILD_INTERFACE:
${
PROJECT_SOURCE_DIR
}
/include>
$<INSTALL_INTERFACE:include>
)
set
(
FMT_DEBUG_POSTFIX d
)
set_target_properties
(
fmt PROPERTIES
VERSION
${
FMT_VERSION
}
SOVERSION
${
CPACK_PACKAGE_VERSION_MAJOR
}
DEBUG_POSTFIX d
)
DEBUG_POSTFIX
${
FMT_DEBUG_POSTFIX
}
)
# Set FMT_LIB_NAME for pkg-config fmt.pc.
get_target_property
(
FMT_LIB_NAME fmt OUTPUT_NAME
)
if
(
CMAKE_BUILD_TYPE STREQUAL
"Debug"
)
set
(
FMT_LIB_NAME
${
FMT_LIB_NAME
}${
FMT_DEBUG_POSTFIX
}
)
endif
()
if
(
BUILD_SHARED_LIBS
)
if
(
UNIX AND NOT APPLE AND NOT
${
CMAKE_SYSTEM_NAME
}
MATCHES
"SunOS"
)
...
...
support/cmake/fmt.pc.in
View file @
6c30f414
...
...
@@ -6,6 +6,6 @@ includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
Name: fmt
Description: A modern formatting library
Version: @FMT_VERSION@
Libs: -L${libdir} -l
fmt
Libs: -L${libdir} -l
@FMT_LIB_NAME@
Cflags: -I${includedir}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment