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
6040eac5
Commit
6040eac5
authored
Mar 25, 2014
by
Andreas Schuh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use GFLAGS_IS_A_DLL=1 in public headers if BUILD_SHARED_LIBS is enabled (Fixes issue #77).
parent
3fd9fa70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
CMakeLists.txt
CMakeLists.txt
+9
-0
No files found.
CMakeLists.txt
View file @
6040eac5
...
...
@@ -197,6 +197,15 @@ else ()
set
(
GFLAGS_ATTRIBUTE_UNUSED
)
endif
()
# whenever we build a shared library (DLL on Windows), configure the public
# headers of the API for use of this library rather than the optionally
# also build statically linked library; users can override GFLAGS_DLL_DECL
if
(
BUILD_SHARED_LIBS
)
set
(
GFLAGS_IS_A_DLL 1
)
else
()
set
(
GFLAGS_IS_A_DLL 0
)
endif
()
configure_headers
(
PUBLIC_HDRS
${
PUBLIC_HDRS
}
)
configure_sources
(
PRIVATE_HDRS
${
PRIVATE_HDRS
}
)
configure_sources
(
GFLAGS_SRCS
${
GFLAGS_SRCS
}
)
...
...
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