Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
G
gflags
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
gflags
Commits
6bd636c9
Commit
6bd636c9
authored
Feb 29, 2016
by
Andreas Schuh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: Clean up static library filename suffix code from PR #126
parent
dd48d704
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
CMakeLists.txt
CMakeLists.txt
+7
-10
No files found.
CMakeLists.txt
View file @
6bd636c9
...
...
@@ -298,21 +298,19 @@ set (TARGETS)
# static vs. shared
foreach
(
TYPE IN ITEMS STATIC SHARED
)
if
(
BUILD_
${
TYPE
}
_LIBS
)
string
(
TOLOWER
"
${
TYPE
}
"
type
)
# whether or not targets are a DLL
if
(
OS_WINDOWS AND
"^
${
TYPE
}
$"
STREQUAL
"^SHARED$"
)
set
(
GFLAGS_IS_A_DLL 1
)
set
(
GFLAG_STATIC_EXTENSION
""
)
else
()
if
(
OS_WINDOWS
)
set
(
GFLAG_STATIC_EXTENSION _
${
type
}
)
endif
()
set
(
GFLAGS_IS_A_DLL 0
)
endif
()
# filename suffix for static libraries on Windows
if
(
OS_WINDOWS AND
"^
${
TYPE
}
$"
STREQUAL
"^STATIC$"
)
set
(
type_suffix
"_
${
type
}
"
)
else
()
set
(
type_suffix
""
)
endif
()
# multi-threaded vs. single-threaded
foreach
(
opts IN ITEMS
""
_nothreads
)
if
(
BUILD_gflags
${
opts
}
_LIB
)
...
...
@@ -333,10 +331,9 @@ foreach (TYPE IN ITEMS STATIC SHARED)
target_link_libraries
(
gflags
${
opts
}
-
${
type
}
${
CMAKE_THREAD_LIBS_INIT
}
)
endif
()
endif
()
set_target_properties
(
gflags
${
opts
}
-
${
type
}
PROPERTIES COMPILE_DEFINITIONS
"
${
defines
}
"
OUTPUT_NAME
"gflags
${
opts
}${
GFLAG_STATIC_EXTENSION
}
"
OUTPUT_NAME
"gflags
${
opts
}${
type_suffix
}
"
VERSION
"
${
PACKAGE_VERSION
}
"
SOVERSION
"
${
PACKAGE_SOVERSION
}
"
)
...
...
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